We no longer support global installation of Create React App
See original GitHub issueDescribe the bug
I’m not comfortable with all of the critical bugs in the recently released CRA 5.0.0, so want to use the most recent reliable v4 instead, 4.0.3.
Can’t use npx create-react-app
any more due to following error.
user:~/my-dir$ npx create-react-app@4.0.3 my-new-app
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
The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
npm version: 8.1.0
Steps to reproduce
Try creating a new react app using CRA.
npx create-react-app@4.0.3 your-new-app
- Get above error, app not created.
- Try removing global install as per the given instructions with
npm uninstall -g create-react-app
- Has no effect.
Expected behavior
Should create a new CRA app. Should not care about latest release.
Actual behavior
Error.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:25
- Comments:29
Top Results From Across the Web
create-react-app is not working since version 4.0.1
We no longer support global installation of Create React App. You must uninstall create-react-app with npm uninstall -g create-react-app . Then ...
Read more >Create React App cannot create new applications: No longer ...
Learn how to resolve We no longer support global installation of Create React App error.
Read more >We no longer support global installation of Create React App
Whenever i was creating react app using $ npx create-react-app app-name Enter fullscreen... Tagged with react, javascript, programming, ...
Read more >Can't use npx create-react-app "no longer support global ...
In my instance, I had an older version of create-react-app installed globally with yarn, and simply removing it fixed the issue.
Read more >We no longer support global installation of Create React App
To quickly fix this issue for good, the best way is to clear the npx cache, so that in the future you can...
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 Free
Top 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
It’s not an error it’s just a warning. Facebook suggests to use latest version of CRA for creating apps. Use this instead
For more info refer to this stack overflow question
You mean this one
I had a same problem and this has solved the problem. but should be working without designating version or latest in the future I hope.