当我想在Android模拟器上运行我的项目时,我得到了这个错误。
[Hot Module Replacement] Server listening on /hot
React packager ready.
Failed to build DependencyGraph: Watchman error: query failed: synchronization failed: Permission denied. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
Error: Watchman error: query failed: synchronization failed: Permission denied. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
at /Users/Ali/Desktop/app/Test/node_modules/react-native/node_modules/node-haste/lib/crawlers/watchman.js:63:11
at process._tickCallback (node.js:368:9)我尝试了"watchman watch ~path“,"sudo”和"chmod“,但是他们没有帮助我。
有没有人能给我个建议?
发布于 2016-07-12 10:58:23
通过重新安装watchman解决
brew update
brew reinstall watchman发布于 2016-05-24 07:17:08
cd AwesomeProject,并执行chmod -R 777 * it仍然失败。在我给了顶层目录的权限之后,它就能工作了!chmod 777 AwesomeProject
发布于 2016-10-01 01:28:35
检查pid并终止
lsof -n -i4TCP:8081 | grep LISTEN使用root用户运行此命令
react-native starthttps://stackoverflow.com/questions/37370949
复制相似问题