-
Notifications
You must be signed in to change notification settings - Fork 1.2k
npm start
doesn’t start Node server on new project
#316
Comments
Can you copy everything that gets printed out when you run npm start? Also, just try completely deleting the node_modules directory in your project and re-running |
…that’s it. Nothing else. Still doesn’t start the server. That’s on a clean install just now. |
Do you have watchman installed? It shouldn't be necessary for everyone, but I do find that in odd cases where the server acts up, installing it tends to help. You can learn more here: http://facebook.github.io/react-native/docs/getting-started.html#node-watchman |
Ooh! Good suggestion. I got something:
|
I've ran into this on RN in the past (the watchman errors in your latest comment), there's an issue with a fix, hope it helps! |
@breadadams That worked, thanks! My issue was a corrupted or old watchman (not sure which) installed on my machine with Homebrew I must have forgotten about. Uninstalling watchman completely seems to have fixed this issue for me:
Conversely, re-installing watchman ( |
To get that output above, I installed watchman with I believe the issue is fixed. |
--- Delete everything above this line before submitting your issue ---
Description
Bug
Expected behavior
Running
npm start
starts a server atlocalhost:8081
.Actual behavior
No server has started on
localhost:8081
.Reproduction
Running through all the steps from Getting Started, I get the following warnings during the yarn install:
From there, running
npm start
logs theopen browser at http://localhost:8081/vr/
to the console, but it never starts the server (lsof -n -i4TCP:8081
comes up nil—the port isn’t in use).The console just hangs after printing that to the console. I tried manually calling
node node_modules/react-native/local-cli/cli.js start
, but that does the same thing—it just hangs with no error output.Solution
There’s probably some missing install instructions (I’ve never used React Native before, so assume I haven’t done any set up for that), or there is an error deep within an NPM package (React Native?) that’s not bubbling up to my console. I’d love to troubleshoot, but I can’t go down the node_modules rabbit hole if the point of react-vr-cli was to abstract all of this out of my control.
Additional Information
1.4.0
1.4.0
8.4.0
0.27.5
The text was updated successfully, but these errors were encountered: