close

[Solved] We no longer support global installation of Create React App

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 ?

  1. 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.

  2. 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.

  1. First Of all Open your package.json file.
  2. And then look into dependencies for react-scripts.
  3. Now, You can Open the create-react-app changelog file CHANGELOG.md
  4. There You can see Which version you are using and Then you can find  “subheading” for migration instructions.
  5. 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

7 thoughts on “[Solved] We no longer support global installation of Create React App”

  1. 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🙇‍♂️🙏🙏

    Reply
    • 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.

      Reply
    • 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 ?

      Reply

Leave a Comment