You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the instructions in the readme but when I run npm start I get this error message:
[Error: Watcher took too long to load.]
Error: Watcher took too long to load.
at null._onTimeout (/Users/mrscobbler/Projects/react-native/packager/react-packager/src/FileWatcher/index.js:37:16)
at Timer.listOnTimeout as ontimeout
ERROR: could not create packager - please shut down any existing instances that are already running.
I don't think I have any other existing instances running (as far as I know). I installed Watchman. When I run which watchman I see this: /usr/local/bin/watchman
Can you restart your computer and try again?
Sometimes fseventsd on OSX gets into a bad state which can be solved by restarting. If that didn't work please bump the timeout we have in react-packager FileWatcher.js, maybe we need a longer one.
I restarted my computer and tried running npm start again, without any luck. I also changed MAX_WAIT_TIME = 30000; in the react-packager/src/FileWatcher/index.js file and didn't have any luck with that either.
When I ran npm install this is the output I got:
npm WARN package.json punycode@1.2.4 punycode is also the name of a node core module.
npm WARN package.json stacktrace-parser@0.1.1 No repository field.
npm WARN prefer global npm@2.5.0 should be installed with -g
So I ran npm install -g. I'm not sure if that makes a difference or not.
Oh yes, I did type that. I did the rm -Rf node_modules and npm install, but I'm still seeing the watcher error happening. When I run the simulator, the app loads, and a red screen appears. This is what the terminal has:
Error: Watcher took too long to load.
at null._onTimeout (/Users/mrscobbler/Projects/react-native/packager/react-packager/src/FileWatcher/index.js:37:16)
at Timer.listOnTimeout as ontimeout
[15:02:49] request:/Examples/Movies/MoviesApp.includeRequire.runModule.bundle
Ok I think I fixed my problem! I had installed watchman on my computer and then upgraded my computer to Yosemite so I could get the latest version of Xcode. I uninstalled watchman and then reinstalled it. That fixed the problem. I'm guessing the version of watchman I had didn't work with Yosemite? Thanks for the help!
Awesome! @amasad I think it would be nice to add something like "try running watchman from your terminal" to the "Watcher took too long to load" error message, because it can give more details about what's wrong.
Activity
amasad commentedon Feb 8, 2015
Can you restart your computer and try again?
Sometimes fseventsd on OSX gets into a bad state which can be solved by restarting. If that didn't work please bump the timeout we have in react-packager FileWatcher.js, maybe we need a longer one.
Let me know if either of those work.
mrscobbler commentedon Feb 8, 2015
I restarted my computer and tried running npm start again, without any luck. I also changed MAX_WAIT_TIME = 30000; in the react-packager/src/FileWatcher/index.js file and didn't have any luck with that either.
When I ran npm install this is the output I got:
npm WARN package.json punycode@1.2.4 punycode is also the name of a node core module.
npm WARN package.json stacktrace-parser@0.1.1 No repository field.
npm WARN prefer global npm@2.5.0 should be installed with -g
So I ran npm install -g. I'm not sure if that makes a difference or not.
vjeux commentedon Feb 8, 2015
Oh, maybe this is the same error as another issue. Did you happen to have typed
by chance? If yes, can you do
and do
mrscobbler commentedon Feb 8, 2015
Oh yes, I did type that. I did the rm -Rf node_modules and npm install, but I'm still seeing the watcher error happening. When I run the simulator, the app loads, and a red screen appears. This is what the terminal has:
Error: Watcher took too long to load.
at null._onTimeout (/Users/mrscobbler/Projects/react-native/packager/react-packager/src/FileWatcher/index.js:37:16)
at Timer.listOnTimeout as ontimeout
[15:02:49] request:/Examples/Movies/MoviesApp.includeRequire.runModule.bundle
mrscobbler commentedon Feb 8, 2015
Ok I think I fixed my problem! I had installed watchman on my computer and then upgraded my computer to Yosemite so I could get the latest version of Xcode. I uninstalled watchman and then reinstalled it. That fixed the problem. I'm guessing the version of watchman I had didn't work with Yosemite? Thanks for the help!
frantic commentedon Feb 9, 2015
Awesome! @amasad I think it would be nice to add something like "try running
watchmanfrom your terminal" to the "Watcher took too long to load" error message, because it can give more details about what's wrong.mrscobbler commentedon Feb 9, 2015
I think that would help. Thanks again!
JSONKit usage here may cause serious crash hard to debug(I found the …