create-react-app is not working since version 4.0.1 create-react-app is not working since version 4.0.1 reactjs reactjs

create-react-app is not working since version 4.0.1


All of the existing answers are incorrect.

According to the create-react-app docs, create-react-app should not be installed globally:

If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.

This is even stated in the error message you recieved:

You are running create-react-app 4.0.0, which is behind the latest release (4.0.1).We no longer support global installation of Create React App.

(Emphasis mine)


You must uninstall create-react-app with npm uninstall -g create-react-app.

Then each time you want to create a new React app with create-react-app, use the command npx create-react-app my-app.

So to fix the error you're getting, uninstall create-react-app globally, update npm, clear the cache, and retry creating the app.

Run this in your terminal:

npm uninstall -g create-react-app && npm i -g npm@latest && npm cache clean -f && npx create-react-app my-app


This worked for me:

npx create-react-app@latest your-project-name --use-npm


I also faced this issue after they released v4.0.2.

They have mentioned this:

If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.

I resolved the issue by following the below steps:

  1. Uninstall create-react-app v4.0.1:

    # for npm:npm uninstall -g create-react-app# for yarn:yarn global remove create-react-app
  2. You are not required to install create-react-app in your local directory, so if you do not want to do this then move to step 3. If you want to do this, install v4.0.2 without using the global flag (-g or --global) using the below command:

    # for npm:npm i create-react-app# for yarn:yarn add create-react-app
  3. You can now create a new React app using the below command:

    # for npx:npx create-react-app my-app# for npm:npm init react-app my-app# for yarn:yarn create react-app my-app