Watchman cannot start and the page loading cannot solve the problem, watchmanloading
Performance
// The information provided after startup. watchman cannot start Looking for JS files in/Users/tomlucky/otherCode/RN/AwesomeProject Metro Bundler ready. loading dependency graph... BUNDLE [android, dev]. /index. js ???????????????? 0.0% (0/1) 2018-01-09T18: 09: 37,917: [cli] unable to talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) Watchman: watchman -- no-pretty get-sockname returned with exit code = 1, signal = null, stderr = 2011-01-09t18: 09: 37,917: [cli] unable to talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) 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 -- no-pretty get-sockname returned with exit code = 1, signal = null, stderr = 2018-01-09T18: 09: 37,917: [cli] unable t O talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) 2011-01-09t18: 12: 02,864: [cli] unable to talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) Watchman: watchman -- no-pretty get-sockname returned with exit code = 1, signal = null, stderr = 2011-01-09t18: 12: 02,864: [cli] unable to talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) ERROR watchman -- no-pretty get-sockname returned with exit code = 1, signal = null, stderr = 2011-01-09t18: 12: 02,864: [cli] unable to talk to your watchman on/usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory) Loading dependency graph... BUNDLE [android, dev]./index. js ???????????????? 0.0% (0/1) Process terminated. Press
To close the window
Solution: delete watchman (previously installed with brew ):
$ Brew install rmtree // my error is returned. // brew tap beeftornado/rmtree $ brew rmtree watchman $ sudo rm-rf/usr/local/var/run/watchman
Manually install Watchman v4.7.0 (credits to David ):
$ Git clone https://github.com/facebook/watchman.git$ cd watchman $ git checkout v4.7.0 // when I use it, the master is 4.7, so there is no need to switch branch $. /autogen. sh $. /configure $ make $ sudo make install
Chmod your user's watchman state directory:
// I am useless and can run it directly. $ Chmod 0700/usr/local/var/run/watchman/
-State