简体   繁体   中英

error with create-react-app, behind 5.0.1

Whenever I ran

npx create-react-app my-app-name

it would throw this error:

You are running create-react-app
4.0.3, which is behind the latest release (5.0.1).
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

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

If you simply run the command:

npx clear-npx-cache

and say yes to downloading the package, you can simply rerun the create-react-app command and it should work perfectly

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