I tried trying to create a new react app with these two commands:
npx create-react-app portfolio
npm init react-app portfolio
but for both I got this error:
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
So I tried these commands to uninstall create-react-app:
npm uninstall -g create-react-app
npm uninstall -g create-react-app --save
sudo npm uninstall -g create-react-app
and for all of them I got this:
up to date, audited 1 package in 2s
found 0 vulnerabilities
And afterwards I tried the same two commands for making a new app and got the same error. what should I do?
You'll need to have Node >= 14.0.0
and npm >= 5.6
on your machine. To create a project, run:
npx create-react-app my-app
cd my-app
npm start
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.