Create-react-app stuck on v4.0.3, cannot create a new app
Created by: rydwhelchel
Describe 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.