Watchman cannot start and the page loading cannot solve the problem, watchmanloading

Source: Internet
Author: User

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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.