Create-react-app stuck on v4.0.3, cannot create a new app
See original GitHub issueDescribe the bug
When attempting to use npx create-react-app <app-name>
, I get the following error:
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).
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
What I have tried to fix it:
- Run
npm uninstall -g create-react-app
to uninstall any global versions of create-react-app - Run
npm i -g npm@latest
to update npm - Run
npm uninstall -g create-react-app && sudo npm cache clean -f
to try and clean any cached information regardingcreate-react-app
.
Below is a gif showing the issue in real time.
Which terms did you search for in User Guide?
Latest release
Environment
Unfortunately, the npx create-react-app info
command ends up with the same error.
I am currently on Mac v12.0.1. Please request more info if needed.
Steps to reproduce
- Attempt to run
npx create-react-app <app-name-here>
Expected behavior
A React app is created.
Actual behavior
create-react-app
errors due to incorrect version.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:22
- Comments:24 (1 by maintainers)
Top Results From Across the Web
create-react-app is not working since version 4.0.1
So to fix the error you're getting, uninstall create-react-app globally, update npm, clear the cache, and retry creating the app. Run this in ......
Read more >create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
Read more >Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >npx create-react-app stuck Code Example
npm uninstall -g create-react-app npm cache clean --force npm install -g create-react-app.
Read more >React app stuck on Starting the development server
I am facing the same issue, I am using Apple MacBook Pro With M1 chip. When I am starting react development server using...
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 FreeTop 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
Top GitHub Comments
run
That’s the problem.
npx
is NOT pulling the latest version. The workaroundnpx create-react-app@5.0.0 app-name
will let you create a react app. But if you go back to the standardnpx create-react-app my-app
it goes back to this broken looping behavior where it is globally installing 4.0.3, then telling you to uninstall it… rinse… repeat