0

I am using the command npx create-react-app React-app, but it shows me the following error.

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

I tried npx create-react-app@5.0.1 React-app, but it didnt work as well.

I have updated versions of npm and node.

Arnav Thorat
  • 2,632
  • 2
  • 5
  • 27
maks
  • 11
  • 1
  • Does this answer your question? [create-react-app is not working since version 4.0.1](https://stackoverflow.com/questions/64963796/create-react-app-is-not-working-since-version-4-0-1) – Amit May 07 '22 at 15:15

3 Answers3

1

You are using older global version of creat-react-app. Please Kindly check the global version and update the version with below command

npm install -g create-react-app@5.0.1 

or

npm install -g create-react-app@latest

Note : As you can see in the error there is no need to install creat-react-app globally so you can also uninstall the creat-react-app globally using below command

npm uninstall -g create-react-app
Mihir Shah
  • 346
  • 1
  • 7
0
npx clear-npx-cache

you can try this one and also check this post where you can find possible solutions : "You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)"

0

name of the project must be start whit lowwercase

  • True, but unrelated to the error. – Dave Newton May 07 '22 at 15:45
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 12 '22 at 01:17