运行ReactNative工程watchman运行错误

运行ReactNative工程watchman运行错误在运行 RN 工程的时候执行 react native run android 的时候控制台一只出现这个玩意儿 Watchman watchmanno pretty get sockname returned with exit code 1 ERROR Unknown option no pretty 解决方法 npm 下面的包也有 watchman

大家好,我是讯享网,很高兴认识大家。

在运行RN工程的时候执行react-native run-android的时候控制台一只出现这个玩意儿~~

Watchman: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty

讯享网解决方法:

npm下面的包也有watchman,如果安装了先卸载

npm r -g watchman

讯享网brew uninstall watchman brew link pcre brew install --HEAD watchman

然后安装不了出现了错误

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

此时尝试解决方案:

brew link --overwrite watchman  继续报错


讯享网

Error: No such keg: /usr/local/Cellar/watchman

解决方案开放权限:

sudo chown -R whoami /usr/local

sudo mkdir /usr/local/Frameworks

 brew link --overwrite watchman  然后提示变为:

Error: No such keg: /usr/local/Cellar/watchman

重新安装:

ERROR: Unknown option --no-prettyERROR: Unknown option --no-prettyWatchman: 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> (.../fb-watchman/index.js: 198: 18) at emitTwo (events.js: 106: 13) at ChildProcess.emit (events.js: 191: 7) at maybeClose (internal/child_process.js: 852: 16) at Socket.<anonymous> (internal/child_process.js: 323: 11) at emitOne (events.js: 96: 13) at Socket.emit (events.js: 188: 7) at Pipe._handle.close [ as _onclose] (net.js: 492: 12)
小讯
上一篇 2025-03-26 18:23
下一篇 2025-03-20 15:01

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/81162.html