Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to make new react project with npx create-react-app command But I am facing following error We no longer support global installation of Create React App in ReactJS. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How This Error Occurs ?
I am trying to make new react project with npx create-react-app command But I am facing 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
The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/
How To Solve We no longer support global installation of Create React App Error ?
- How To Solve We no longer support global installation of Create React App Error ?
To Solve We no longer support global installation of Create React App Error You just need to clear your cache and then you can create new reactjs project. First of all clear cache by running this command: npx clear-npx-cache if it is not work use this and try again: Delete everything from this path: C:\Users\Your_user_name\AppData\Roaming\npm-cache Or Try the command
npm cache clean --force
using administrator mode in your terminal. Now, Just rerun Your create command: npx create-react-app your-app Now, Your problem must be solved. - We no longer support global installation of Create React App
To Solve We no longer support global installation of Create React App Error Here Just try to run with located the installed version Just run This command: npm ls -g create-react-app your_project Now, Your Error should be solved.
Solution 1: Try to run with located the installed version
Here Just try to run with located the installed version Just run This command.
npm ls -g create-react-app your_project
Now, Your Error should be solved.
Solution 2: Force to the latest version
Just try to run create command with Force to the latest version. Just like this.
npx create-react-app@latest_version my-app --use-npm
And Latest version is 5.0.0 so Just Try this command.
npx create-react-app@5.0.0 my-app
Now, Your error must be solved.
Solution 3: Clear cache
You just need to clear your cache and then you can create new reactjs project. First of all clear cache by running this command.
npx clear-npx-cache
if it is not work use this and try again: Delete everything from this path.
C:\Users\Your_user_name\AppData\Roaming\npm-cache
On macOS (and likely Linux) it’s ~/.npm/_npx
, you can drop it with:
rm -rf ~/.npm/_npx
Or Try the command npm cache clean --force
using administrator mode in your terminal. Now, Just rerun Your create command.
npx create-react-app your-app
Now, Your problem must be solved.
Solution 4: Run This Command
Just Run This Command one by One.
npm uninstall -g create-react-app
npm cache clean --force
npm cache verify
npx create-react-app my-app
Solution 5: Updating create-react-app
First of all you need to identify that which version you are using package.json.
- First Of all Open your package.json file.
- And then look into
dependencies
forreact-scripts
. - Now, You can Open the
create-react-app
changelog file CHANGELOG.md - There You can see Which version you are using and Then you can find “subheading” for migration instructions.
- Write down the commands you found! Those will be your upgrade steps
Here is Migrating Screenshot.

Or You Can Directly Use this command To update your version.
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@5.0.0
or
yarn add --exact react-scripts@5.0.0
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
Thank you so much for this! Was struggling with the just globally uninstall but now it finally worked 🙂
amazing!!!! it really worked thanks for the help brother
I have tried every possible way to solve the error but I am still stuck with the same error. I have run every command step by step but still the same. I have tried by uninstalling VS code and again installing and again same error. I have also tried after restarting my pc several times but still the same. Plz, help me🙇♂️🙏🙏
I have tried your every solution step by step and also seek some help from youtube, geeks for geeks and other related platforms as well but still stuck with the same error. Somebody plz help me asap.
Pradyumna Can You Share More Details about Your Error ?
I think You are facing this error Because of Globle installtion. Do You Try
npm uninstall -g create-react-app
This Command Pradyumna ?
Thank you so much, this worked perfectly!!
Worked perfectly on the first try, thank you for creating this!