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.

create-react-app failing when creating new project

See original GitHub issue

Describe the bug

When running create-react-app client I get the error below (–version 1.5.2)

Did you try recovering your dependencies?

Yes, still getting the error: npm@6.10.3 (Just 6.10.3 was printed)

Environment

Environment Info:

System: OS: Windows 10 CPU: (8) x64 Intel® Core™ i7-5700HQ CPU @ 2.70GHz Binaries: Node: 11.4.0 - C:\Users\jack\AppData\Roaming\npm\node.CMD Yarn: 1.12.3 - C:\Users\jack\AppData\Roaming\npm\yarn.CMD npm: 6.10.3 - C:\Users\jack\AppData\Roaming\npm\npm.CMD Browsers: Edge: 42.17134.1.0 Internet Explorer: Not Found npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: Not Found

Steps to reproduce

  1. I am trying to run create-react-app and it keeps deleting the folder that’s created because of an error

Expected behavior

I thought it would create a new React application for me

Actual behavior

Creating a new React app in C:\Users\jack\WebstormProject\test.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.12.3
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > flatten@1.0.2: I wrote this modul
e a very long time ago; you should use something else.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
[2/4] Fetching packages...
error eslint@6.1.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.4.0"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd C:\Users\jack\WebstormProject\test has failed.

Deleting generated file... package.json
Deleting test / from C:\Users\jack\WebstormProject
Done.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Tabebeecommented, Aug 18, 2019

I was having the same problem. I ended up using method 1 on this guid and everything is working again. https://hosting.review/tutorial/how-to-update-node/ These are all the commands: npm install npm@latest -g sudo npm cache clean -f sudo npm install -g n sudo n stable

1reaction
joaocv3commented, Aug 16, 2019

upgrading yarn with brew upgrade yarn worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install react using npx create-react-app? - Stack Overflow
This happens is if one of the node modules requires to install your react app is missing. The other reason is if your...
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >
npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >
What To Do if create-react-app Doesn't Work
1. npm uninstall -g create-react-app · 2. yarn global remove create-react-app · 3. npm update npx · 4. npm install npm@latest -g ·...
Read more >
Create React App
Your app only needs one build dependency. We test Create React App to make sure that all of its underlying pieces work together...
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