Closed
Description
solution in https://facebook.github.io/watchman/docs/troubleshooting.html does not work
node -v
v2.3.4
edwin@192.168.0.112:/Users/edwin/Documents/workfolder/workspace/ReactNative-PropertyFinder git:(master*) $ npm start
> PropertyFinder@0.0.1 start /Users/edwin/Documents/workfolder/workspace/ReactNative-PropertyFinder
> node_modules/react-native/packager/packager.sh
===============================================================
| Running packager on port 8081.
| Keep this packager running while developing on any JS
| projects. Feel free to close this tab and run your own
| packager instance if you prefer.
|
| https://github.com/facebook/react-native
|
===============================================================
Looking for JS files in
/Users/edwin/Documents/workfolder/workspace/ReactNative-PropertyFinder
React packager ready.
[00:18:06] <START> fs crawl
[00:18:08] <END> fs crawl (1954ms)
ERROR Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
Error: Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
at [object Object]._onTimeout (/Users/edwin/Documents/workfolder/workspace/ReactNative-PropertyFinder/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:98:16)
at Timer.listOnTimeout (timers.js:89:15)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
npm ERR! Darwin 14.4.0
npm ERR! argv "/Users/edwin/.nvm/versions/io.js/v2.3.4/bin/iojs" "/Users/edwin/.nvm/versions/io.js/v2.3.4/bin/npm" "start"
npm ERR! node v2.3.4
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
npm ERR! PropertyFinder@0.0.1 start: `node_modules/react-native/packager/packager.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the PropertyFinder@0.0.1 start script 'node_modules/react-native/packager/packager.sh'.
npm ERR! This is most likely a problem with the PropertyFinder package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node_modules/react-native/packager/packager.sh
npm ERR! You can get their info via:
npm ERR! npm owner ls PropertyFinder
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/edwin/Documents/workfolder/workspace/ReactNative-PropertyFinder/npm-debug.log
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
arypurnomoz commentedon Jul 18, 2015
+1
brentvatne commentedon Jul 20, 2015
Try out some of these solutions, and let us know if one works so we can update the docs! Or if you're up to it, feel free to update them yourself and submit a PR!
#1991
#1920
#910
#20
If those don't work, try uninstalling node and watchman via homebrew, and install
nvm
and then usenvm
to installiojs
, then reinstall watchman and try again.Ping me if none of the above solves your problem and we can re-open this and look into it further! 😄
wanghaisheng commentedon Jul 21, 2015
@brentvatne yeah I have tried the solution you mentioned before i post this issue.
brentvatne commentedon Jul 22, 2015
@wanghaisheng - you tried all of those solutions? What OS version are you using?
wanghaisheng commentedon Jul 22, 2015
yeah, it takes my whole last weekend though
@brentvatne OSX 10.10.4
npm -v
2.12.1
brentvatne commentedon Jul 22, 2015
:(
brentvatne commentedon Jul 22, 2015
@wanghaisheng - does this happen when you just create a new project with
react-native init SomeProjectName
? Maybe this is somehow related to the PropertyFinder app mentioned above (iirc it's from a very early tutorial) being on an older versionwanghaisheng commentedon Jul 22, 2015
@brentvatne no . not intend to init some project until now.
brentvatne commentedon Jul 22, 2015
@wanghaisheng - see: sandeepmistry/node-xpc-connection#2 (comment) maybe?
wanghaisheng commentedon Jul 22, 2015
@brentvatne gcc version is different.for installing watchman,I have manually installed latest version gcc on osx10.10.4 because there is no default installation with Xcode
facebook/watchman#120
broonage commentedon Jul 22, 2015
Hi guys,
I'm a +1. I've followed all the solutions (uninstall, chmod rights, removing launchagents etc), the official troubleshooting solution, and still getting the timeout error.
Here's the log:
[-]Error: Watcher took too long to load [/-][+][Packager] Error: Watcher took too long to load [/+]6 remaining items
broonage commentedon Jul 23, 2015
@shayne, that fixed it! Able to edit and refresh the index js file!
Thanks guys.
wanghaisheng commentedon Jul 23, 2015
thx for all of u .
I figure out it temporally because of watchman,
when I uninstall the 3.5.0 version and brew install the 3.3.0 version ,the error is missing.
mattmo commentedon Jul 23, 2015
Glad you were able to figure it out
akshatpaul commentedon Sep 4, 2015
@shayne I am splitting my head for last 4 hrs on this issue - thank you so much for the solution 👍 you are awesome
kyle-ssg commentedon Sep 7, 2015
Same as above, thanks @shayne.
olivierlesnicki commentedon Nov 7, 2015
@shayne good job on finding out this solution
skunkworker commentedon Jan 9, 2016
@shayne +1 for
git init
inside of the project folder, it fixed my errors as well. I'm on watchman 4.1.0 and npm 3.3.12. Shouldn't a hard dependency on the folder being a git repo be an issue?tiansiyuan commentedon Feb 3, 2016
npm start failed
bh1270 commentedon Jul 1, 2016
@tiansiyuan have you fix it ?
anil826 commentedon Dec 5, 2016
have you fixed it
zetaoWu commentedon Jan 4, 2017
have you fix it ? @hubei1234 @tiansiyuan
RajanJS commentedon Jan 30, 2017
this solution worked for me,
Thanks