React Native 启动watchman报错 Operation not permitted

文章目录[隐藏]

好久没有用 RN 了,又要从头配置环境,当配置好环境之后 yarn android 启动项目会报错,报错内容如下:

metro-file-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project. Error: Watchman error: std::__1::system_error: open: /Users/xxxxx/Desktop/AwesomeProject: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.

重新安装 watchmanReset Watchmanwatchman watch-del-all)都没有用
最后执行了 watchman shutdown-server 问题解决了。

记录一下

参考链接:

Operation not permitted · Issue #977 · facebook/watchman · GitHub


已发布

分类

作者:

标签

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注