Member-only story

Solved — Error While Creating new React app(You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0))

Are you getting this error again and again even after doing the uninstall part ? (npm uninstall -g create-react-app)

Flutter Developer
1 min readDec 15, 2021
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/

To fix this do the following

  1. npx clear-npx-cache
  2. create-react-app your-app

3. (Optional) Clear the central cache for npx:

Mac OS

rm -rf ~/.npm/_npx

Windows

%LocalAppData%/npm-cache/_npx

4. Try to force the latest version with:

npx create-react-app@latest my-app --use-npm

Hope this helped 🙏

Support me by becoming a Medium member 🥳, and get access to unique programming articles that will enhance you skills.

Become a Medium member — 🖖 Live long and prosper 🖖

--

--

Flutter Developer
Flutter Developer

Written by Flutter Developer

Flutter and Native Android developer

Responses (2)