couldn't start new project
See original GitHub issueDescription
I created a new project with $ npm i -g create-react-native-app $ create-react-native-app my-project but I’m getting an error when I run npm start
Observed Behavior
What actually happened when you performed the above actions?
If there’s an error message, please paste the full terminal output and error message in this code block:
> my-project@0.1.0 start /Users/jesicagreenwell/my-project
> react-native-scripts start
17:58:58: Starting packager...
17:59:03: Error starting packager: Error: Couldn't start project. Please fix the errors and restart the project.
at /xdl/src/Project.js:1039:11
at Generator.next (<anonymous>)
at step (/Users/jesicagreenwell/my-project/node_modules/xdl/build/Project.js:1461:191)
at /Users/jesicagreenwell/my-project/node_modules/xdl/build/Project.js:1461:361
at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-project@0.1.0 start: `react-native-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-project@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jesicagreenwell/.npm/_logs/2017-06-03T07_59_03_045Z-debug.log
Environment
Please run these commands in the project folder and fill in their results:
-
npm ls react-native-scripts
: react-native-scripts@0.0.30 -
npm ls react-native
: └── UNMET DEPENDENCY react-native@^0.44.0 npm ERR! missing: react-native@^0.44.0, required by my-project@0.1.0 -
npm ls expo
: └── UNMET DEPENDENCY expo@^17.0.0 npm ERR! missing: expo@^17.0.0, required by my-project@0.1.0 -
node -v
: v8.0.0 -
npm -v
: 5.0.1 -
yarn --version
: 0.24.5 -
watchman version
: {“version”: “4.7.0”}
Also specify:
- Operating system: OS X 10.11.6
- Phone/emulator/simulator & version:
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you’re reporting.
Issues that come with minimal repro’s are resolved much more quickly than issues where a maintainer has to reproduce themselves.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top GitHub Comments
issue resolved with brew install yarn npm uninstall -g create-react-native-app yarn global add create-react-native-app
Delete node_modules and run
yarn
again. I imagine you created the project with npm5 installed, and the problem arises when you create and runnpm install
with npm5.