UnhandledPromiseRejectionWarning: can not create app folder and start installation
See original GitHub issueDescription
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
: emptynpm ls react-native
: emptynpm ls expo
: emptynode -v
: v8.9.1npm -v
: 6.4.1yarn --version
: 1.7.0watchman version
: command not found: watchman
Also specify:
- Operating system: macOs 10.13.4
- Phone/emulator/simulator & version: -
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@caseychoiniere Thanks, I updated my CRNA CLI to v2 and everything is working.
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 theUnhandledPromiseRejectionWarning:
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