小编Don*_*324的帖子

jest-haste-map:守望者抓取失败。使用节点爬虫重试一次

我刚刚在运行 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 但是,最大的问题是我找不到访问此文件夹的方法,我什至无法在选择窗口中看到此文件夹请帮助这个可怜的开发人员。 。

node.js reactjs watchman react-native

10
推荐指数
2
解决办法
9427
查看次数

标签 统计

node.js ×1

react-native ×1

reactjs ×1

watchman ×1