-
- Notifications
You must be signed in to change notification settings - Fork 27.2k
Open
Milestone
Description
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-appto uninstall any global versions of create-react-app - Run
npm i -g npm@latestto update npm - Run
npm uninstall -g create-react-app && sudo npm cache clean -fto 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.
jestrickler, obsius, MichaelJHTaggart, panqiuhui, elushnikova and 15 morevapaternina, apolaina-ineat and lubelski
