I've been trying to install a new app for my project. and I have an issue running it on my vs code. now, I was trying to uninstall from the global and its still output the same error. did some one ran into this error lately?
The ERROR output in the terminal:
"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 mands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
The latest instructions for creating a new app can be found here: /docs/getting-started/"
thanks ahead.
I've been trying to install a new app for my project. and I have an issue running it on my vs code. now, I was trying to uninstall from the global and its still output the same error. did some one ran into this error lately?
The ERROR output in the terminal:
"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 mands:
- 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/"
thanks ahead.
Share Improve this question asked Dec 20, 2021 at 14:41 Eli YairEli Yair 472 silver badges7 bronze badges 1- If you want a specific version, you run npm install --save react@<version> e.g. npm install --save [email protected] . – Gautam Kothari Commented Dec 20, 2021 at 14:46
6 Answers
Reset to default 2thank you guys for your help. ive found the solution. i entered the following link: https://create-react-app.dev/docs/getting-started/
and then found this link inside that guide me through : https://gist.github./gaearon/4064d3c23a77c74a3614c498a8bb1c5f
and this is the solution:
If you use npm 5.1 or earlier, you can't use npx. Instead, install create-react-app globally:
npm install -g create-react-app Now you can run:
create-react-app my-app
thanks again for the contribute!
npx create-react-app@latest my-app
You can run this mand to create new app with version 5.0.0
npx [email protected] my-app
or
run this mand and clear npx cache
npx clear-npx-cache
then run this mand to create react app
npx create-react-app my-app
None of the other answers worked for me.
In my case this mand worked:
npm init react-app my-app
None of the other answers worked for me. I don't know-how but what Gautam Kothari mented (in a way) above worked. I had to install the latest version of React:
In my case:
npm install --save [email protected]
Then I installed the latest version of create-react-app
npx [email protected] my_app
You can run this mand
yarn global add [email protected]