watchman--no-pretty get-sockname returned with exit code null

現(xiàn)象:iOS app啟動的時特別慢,需要半分鐘,在terminal中可以看到watchman的錯誤信息

1、

ERROR: Unknown option --no-pretty

Watchman:? watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty

ERROR? watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty

Error: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty

at ChildProcess、(/home/sreejith/projects/sample/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:194:18)

at emitTwo (events.js:87:13)

at ChildProcess.emit (events.js:172:7)

at maybeClose (internal/child_process.js:817:16)

at Socket.

(internal/child_process.js:319:11)

at emitOne (events.js:77:13)

at Socket.emit (events.js:169:7)

at Pipe._onclose (net.js:469:12)

或者:

2、Watchman:? watchman--no-pretty get-sockname returned with exit code 1? ...... NO such file

....

at ChildProcess ....

at emitTwo ....

.....

解決辦法:

npm r -g watchman

brew update && brew upgrade

brew uninstall watchman

brew link pcre

brew install --HEAD watchman

如果遇到權(quán)限問題? 使用命令 sudo chown -R $(whoami):admin /usr/local

參考:github.com/facebook/react-native/issues/2941

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc閱讀 2,985評論 0 0
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,014評論 0 23
  • 5/15/2017 7:06:35 PM 縱觀各大組件,配置文件占據(jù)極其重要的地位??膳渲没彩钱?dāng)下開發(fā)的一流行趨...
    愛做夢的胖子閱讀 4,524評論 0 8
  • 現(xiàn)在我開始反思我自己,我每天做好多的事情,到底是為了什么。 我專業(yè)是會計,同時我還修第二專業(yè)物流管理。會計是爸媽幫...
    溫艷光年閱讀 1,787評論 11 5
  • 月亮,月亮, 你要好好的掛在天上。 不因外物而操心, 煩心事不會對你講。 月亮,月亮, 你要好好的掛在天上。 露出...
    老貓solo閱讀 422評論 9 8

友情鏈接更多精彩內(nèi)容