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了好久,总结了一下各种处理方式,最后执行下面的语句搞定:

设置权限
sudochownR (whoami):admin /usr/local

重新安装watchman
brew uninstall watchman
brew link pcre
brew install –HEAD watchman

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值