react-native: Error watchman took too long to load
EDIT:
Please make sure you’re running watchman 3.1. You can upgrade using the following:
watchman shutdown-server
brew update
brew upgrade watchman
Then run watchman version to make sure you’re running v3.1
[Error: Watcher took too long to load Try running watchman from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html] Error: Watcher took too long to load Try running watchman from your terminal https://facebook.github.io/watchman/docs/troubleshooting.html at null._onTimeout (/Users/WhackyApps/AwesomeProject/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:71:16) at Timer.listOnTimeout (timers.js:110:15)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 50 (13 by maintainers)
Commits related to this issue
- homebrew: avoid pruning out the statedir Avoid this problem: ``` $ brew install -v --HEAD watchman ... ==> make install /usr/bin/install -c -d -m 777 /usr/local/Cellar/watchman/HEAD/var/run/watchman... — committed to facebook/watchman by wez 9 years ago
- [ReactNative|Easy] Change watchman too-long error message Summary: @wez Mentioned this in Issue #239 -- right now when watchman takes too long we recommend you run `watchman` from your terminal which... — committed to sahrens/react-native by pcottle 9 years ago
Ok, I managed to figure this out. In this commit we see the file getting moved from
packager/react-packager/src/FileWatcher/index.jstopackager/react-packager/src/DependencyResolver/FileWatcher/index.jsThen in this commit the
FileWatcheris completely re-structured undernode-haste.To change
MAX_WAIT_TIMEnow, you should be accessingreact-native/node_modules/node-haste/src/FileWatcher/index.js: https://github.com/facebook/node-haste/blob/master/src/FileWatcher/index.js (The project I am trying to run has it built asnode-haste/lib/FileWatcher/)