Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native Failed to build DependencyGraph: Watchman error

I getting this error when I want to run my project on Android emulator.

[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)

I tried "watchman watch ~path" , "sudo" & "chmod" but they didn't help me.

Can someone advise me please?

like image 366
ali ajoudanian Avatar asked May 22 '16 05:05

ali ajoudanian


2 Answers

solved by reinstalling watchman

brew update
brew reinstall watchman
like image 198
d0n Avatar answered Oct 28 '22 14:10

d0n


cd AwesomeProject, and execute chmod -R 777 * it still failed. after i give the permission to the top dir, it work! chmod 777 AwesomeProject

like image 27
ben busy Avatar answered Oct 28 '22 15:10

ben busy