question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

couldn't start new project

See original GitHub issue

Description

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:

  1. Operating system: OS X 10.11.6
  2. 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:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
ghostcommented, Jun 3, 2017

issue resolved with brew install yarn npm uninstall -g create-react-native-app yarn global add create-react-native-app

2reactions
brentvatnecommented, Jun 12, 2017

Delete node_modules and run yarn again. I imagine you created the project with npm5 installed, and the problem arises when you create and run npm install with npm5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Project couldn't open
Type Project in search bar from start menu, right click the app, select “Run as Administrator” and check if you can open the...
Read more >
can't create new project/trailer - Apple Support Communities
Everything was working fine, but recently I couldn't create new movie/trailer. I have more than enough free space and my iMovie is upgraded....
Read more >
Unity Hub won't create new project
Anytime I create a New Project in Unity Hub, It doesn't create the files, and when I go to take a look in...
Read more >
Solved: Getting error "We couldn't create your project" on...
Solved: I signed up for the free tier of Jira Service Management and I'm getting the error "We couldn't create your project, Something...
Read more >
Unable to create or save a new project in Fusion 360
If 'Fusion Team' is not listed in the products, then the permission to create projects will not be available to the account. Reach...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found