2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > watchman--no-pretty get-sockname returned with exit code 1 ERROR

watchman--no-pretty get-sockname returned with exit code 1 ERROR

时间:2019-05-27 20:24:29

相关推荐

watchman--no-pretty get-sockname returned with exit code 1 ERROR

React-Native Start的时候遇到的报错

今天在启动React-Native遇到报错信息

React packager ready.

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.<anonymous> (/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.<anonymous> (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)

google了好久,总结了一下各种处理方式,最后执行下面的语句搞定:

设置权限

sudochown−R(whoami):admin /usr/local

重新安装watchman

brew uninstall watchman

brew link pcre

brew install –HEAD watchman

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。