Don*_*324 10 node.js reactjs watchman react-native
我刚刚在运行 React Native 的 Metro 时发现了一个错误,它是在升级操作系统后出现的
错误是
jest-haste-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/dongjae/Desktop/wellCupOfficial/wellcupOfficial/wellcupApp: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
/Users/dongjae/Desktop/wellCupOfficial/wellcupOfficial/wellcupApp/node_modules/metro-hermes-compiler/src/emhermesc.js:77
throw ex;
Run Code Online (Sandbox Code Playgroud)
在谷歌搜索并尝试了 3 小时的一些解决方案之后?我发现我必须将“watchman”添加到“安全和隐私”下的“完整磁盘访问”
我还发现 watchman 位于 dir opt/local/bin/watchman 但是,最大的问题是我找不到访问此文件夹的方法,我什至无法在选择窗口中看到此文件夹请帮助这个可怜的开发人员。 。
小智 27
试试这个,它对我有用
$ watchman watch-del-all
$ watchman shutdown-server
Run Code Online (Sandbox Code Playgroud)
Ric*_*ewa 13
在项目的根目录中,运行watchman watch-del-all,然后运行watchman shutdown-server。下次运行该应用程序时,系统将提示您授予守望者访问权限。这应该可以解决问题。
| 归档时间: |
|
| 查看次数: |
9427 次 |
| 最近记录: |