react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Failed to build DependencyGraph: Watchman error

Open aliajoudanian opened this issue 10 years ago • 8 comments

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.

aliajoudanian avatar May 21 '16 17:05 aliajoudanian

i have the same problem. and maybe this cause the emulator could not connect to development server. still finding solution.

zeroleo12345 avatar May 23 '16 22:05 zeroleo12345

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

zeroleo12345 avatar May 23 '16 23:05 zeroleo12345

same issue

neverlous avatar Sep 19 '16 08:09 neverlous

Can you post your watchman version if you are commenting on this issue? The latest version is 4.7.0 so try upgrading if you have an old version.

ide avatar Sep 19 '16 18:09 ide

I don't know why, it is OK when I uninstall watchman. Can't understand....

neverlous avatar Sep 20 '16 01:09 neverlous

anyone figured out the solution yet ?

sajjidakr avatar Nov 11 '16 19:11 sajjidakr

If you are using ubuntu, try to run it with superuser mode. Run sudo su first, input your password, then try again to run your project. This is working for me.

RGTimothy avatar Dec 16 '16 08:12 RGTimothy

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

hramos avatar May 25 '17 20:05 hramos