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