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.

npx create-react-app is not working

See original GitHub issue

$ npx create-react-app my-app

You are running create-react-app 4.0.0, which is behind the latest release (4.0.1).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:

  • npm uninstall -g create-react-app
  • yarn global remove create-react-app

The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/

npm ERR! code 1 npm ERR! path C:\Users\User\Desktop npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-react-app my-app

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2020-11-23T18_27_48_723Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:36
  • Comments:90

github_iconTop GitHub Comments

422reactions
imrishavcommented, Nov 26, 2020

I solved this using the following command.

npm uninstall -g create-react-app

then

npm install -g create-react-app

80reactions
salimdasoncommented, Nov 28, 2020
  1. First, you’ll need to uninstall “create-react-app” using the “npm uninstall -g create-react-app” command.
  2. Run “npx create-react-app my-app” each time you want to create a new React app. Hope you find this helpful
Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install react using npx create-react-app? - Stack Overflow
14. try npm cache clean --force then run npm install -g create-react-app@latest · it was the right command, thanks a lot. · your...
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
If, after all of the above, you are unable to run npx create-react-app my-app , then it might be an issue with Node...
Read more >
Create a New React App
If you don't experience the problems described above or don't feel comfortable using JavaScript tools ... npx create-react-app my-app cd my-app npm start....
Read more >
Create React App without Create React App - Bits and Pieces
How webpack and babel work in a more practical sense;; The actual starting to ending flow of building the React app;; How development...
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