'trying to create a new react project by (create-react-app) it is not working properly
I installed latest version of node.js, react.js and next.js
Everything worked properly but at the point I try to create my react project folder in the terminal by create-react-app my-app it tells me this:
You are running create-react-app 5.0.0, which is behind the latest release (5.0.1).
We no longer support global installation of Create React App.
the problem began while I was already working on a project but one day when I did npm start
I got an error I couldn't solve so I decided to create a new project and then that happened did any one got this lately ?
Solution 1:[1]
Uninstall create-react-app and run npx create-react-app@latest instead. Then you'll use the latest version of create-react-app
Solution 2:[2]
Try to remove current version that you have locally and do it with latest version
npm uninstall -g create-react-app
npx clear-npx-cache
npx create-react-app@latest my-app
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gøran Cantona |
| Solution 2 | Evren |
