您的位置:首页 > Web前端 > React

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

2016-01-01 11:10 507 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  react native