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
  • 3,078
  • 3
  • 8
  • 33
maks
  • 11
  • 2
  • 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

2
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)"

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
  • 518
  • 2
  • 9
  • It doesnt work. Maybe you have another solution? – maks May 07 '22 at 18:48
  • npm uninstall -g create-react-app && npm i -g npm@latest && npm cache clean -f && npx create-react-app@latest my-app --use-npm (run this command in your terminal) – Mihir Shah May 08 '22 at 13:01
  • The same error. I think the only solution is to reinstall Windows. Maybe i have some problems with system files. – maks May 09 '22 at 20:31
0

name of the project must be start whit lowwercase

arzumanyan_25
  • 53
  • 1
  • 5
  • 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