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

现象: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

如果遇到权限问题  使用命令 sudo chown -R $(whoami):admin /usr/local

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,974评论 0 0
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,779评论 0 23
  • 5/15/2017 7:06:35 PM 纵观各大组件,配置文件占据极其重要的地位。可配置化也是当下开发的一流行趋...
    爱做梦的胖子阅读 4,496评论 0 8
  • 现在我开始反思我自己,我每天做好多的事情,到底是为了什么。 我专业是会计,同时我还修第二专业物流管理。会计是爸妈帮...
    温艳光年阅读 1,784评论 11 5
  • 月亮,月亮, 你要好好的挂在天上。 不因外物而操心, 烦心事不会对你讲。 月亮,月亮, 你要好好的挂在天上。 露出...
    老猫solo阅读 420评论 9 8

友情链接更多精彩内容