简体   繁体   中英

Receiving error when creating new app using create react app

For some reason when trying to create a new app using create react app, it results in errors everytime. Anybody know what's going on?

Error Stack错误堆栈

Have you tried it without the additional --use-npm flags at the end?

npx create-react-app user-onboarding
cd user-onboarding
npm start

Official docs

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM