Have you tried it without the additional --use-npm
flags at the end?
npx create-react-app user-onboarding
cd user-onboarding
npm start
Edit: Yeah, reading your errors in the screenshot it appears that the --use-npm
flag is causing it to use npm which has outdated versions available, but npx
always finds the newest versions. Which is a big reason it is the preferred method for installing create-react-app
If you have your heart set on using npm
you can always do an npm update
before running it again.
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.