To reload the app press "r"
To open developer menu press "d"
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/abdullahshahid/Documents/caremiles-react-native-repo: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
/Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/metro-hermes-compiler/src/emhermesc.js:77
throw ex;
^
Error: std::__1::system_error: open: /Users/abdullahshahid/Documents/caremiles-react-native-repo: Operation not permitted
at BunserBuf.<anonymous> (/Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/fb-watchman/index.js:95:23)
at BunserBuf.emit (node:events:527:28)
at BunserBuf.process (/Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/bser/index.js:292:10)
at /Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/bser/index.js:247:12
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/jest-haste-map/build/lib/WatchmanWatcher.js:172:10)
at Client.emit (node:events:527:28)
at BunserBuf.<anonymous> (/Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/fb-watchman/index.js:107:12)
at BunserBuf.emit (node:events:527:28)
at /Users/abdullahshahid/Documents/caremiles-react-native-repo/node_modules/bser/index.js:249:12
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
watchmanResponse: {
error: 'std::__1::system_error: open: /Users/abdullahshahid/Documents/caremiles-react-native-repo: Operation not permitted',
version: '2022.05.30.00'
}
}
Node.js v18.2.0
字符串
我给予权限到watchman和终端在系统偏好设置>安全和隐私全磁盘,并尝试了watch-del-all命令和watchman关闭服务器命令,但仍然没有成功
我有mac os monster需要帮助吗?
5条答案
按热度按时间rkue9o1l1#
在你的终端运行
brew uninstall watchman
应该可以解决这个问题9rbhqvlz2#
对于macos Monterey,您需要卸载Watchman。
在终端运行brew uninstall watchman
cyvaqqii3#
我有我的repo在我的文档文件夹在我的M1 macbook pro. This thread说要把它移出那个文件夹,现在它运行得很好!
xam8gpfp4#
这里的一个答案提到将repo放在Documents下,但这对我不起作用。相反,我将其放在Users/myuser/目录下,它工作了。
6g8kf2rb5#
没有张贴在这里帮助我.相反,我尝试了这一点,并成功地解决了这个问题.
解决方案:
字符串
在终端运行这个命令,然后感谢我!