美文网首页
Watchman error: std::__1::system

Watchman error: std::__1::system

作者: xidiyixiwocao | 来源:发表于2022-06-20 15:04 被阅读0次

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/xuyuanbei/Downloads/AwesomeProject: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.

RN项目文件下npm start 或者yarn ios 或者 react-native start 启动失败,终端报上面的错,然后手机或者模拟器的报错是

Could not connect to development server或者No bundle URL present 

开发环境是MacOs: 12.0.1 Monterey (M1) 不知道是不是M1的问题

解决方案就是更改项目目录的地址,把项目目录放到用户目录下面跟Downloads(下载),Documents(文稿)这些目录平级

这个问题在watchman的github上有issue地址是

https://github.com/facebook/watchman/issues/977

相关文章

网友评论

      本文标题:Watchman error: std::__1::system

      本文链接:https://www.haomeiwen.com/subject/varjvrtx.html