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.

UnhandledPromiseRejectionWarning: can not create app folder and start installation

See original GitHub issue

Description

The command create-react-native-app app-name cannot create app folder and start installation

Observed Behavior

$ create-react-native-app AwesomeProject                                                                                                                                       
(node:1490) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: spawn ENOTDIR
(node:1490) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

$ cd AwesomeProject                                                                                                                                                            
cd: no such file or directory: AwesomeProject

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: empty
  • npm ls react-native: empty
  • npm ls expo: empty
  • node -v: v8.9.1
  • npm -v: 6.4.1
  • yarn --version: 1.7.0
  • watchman version: command not found: watchman

Also specify:

  1. Operating system: macOs 10.13.4
  2. Phone/emulator/simulator & version: -

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
Aximemcommented, Sep 26, 2018

@caseychoiniere Thanks, I updated my CRNA CLI to v2 and everything is working.

1reaction
caseychoinierecommented, Sep 26, 2018

Same issue here. It took me several days to figure out what the issues were. Make sure you’re using create-react-native-app @ v2. I got the UnhandledPromiseRejectionWarning: when trying to use anything below the new v2. Then follow the steps I’ve outlined in the issue linked below to fix all of the other bugs/issues that were introduced when they merged create-react-native-app with Expo a few days ago. Mopst of these other issues are relevant only if you eject the app.

See this issue for fixes https://github.com/react-community/create-react-native-app/issues/777

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I got Error while Creating React App? - Stack Overflow
I was new and want to learn ReactJS and I start to install a new empty folder with npx create- ...
Read more >
Windows cannot access specified device, path, or file - Office
Workaround. If the issue persists, try adding permission for all users to access the %appdata\Microsoft folder: Select the Windows Start button ...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
To fix the error, you need to install the package that is absent in your project directory – npm install package-name or yarn...
Read more >
Node.js Rest APIs example with Express, Sequelize & MySQL
Yeah, the first step is done. We're gonna work with Sequelize in the next section. Configure MySQL database & Sequelize. In the app...
Read more >
Unable to connect with node.js due to "mongodb+srv"
TypeError: Cannot read property 'replace' of undefined ... npx create-react-app my-app cd my-app npm install mongodb npm start.
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