报错内容:
You are running `create-react-app` 4.0.2, which is behind the latest release (4.0.3).
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/
解决方法:
- 如果之前是通过全局安装npm install -g create-react-app,那么先使用npm uninstall -g create-react-app
或yarn global remove create-react-app进行卸载 - 接下来使用npx create-react-app 项目名 就可以进行项目创建
本文介绍如何更新Create React App到最新版本4.0.3,并提供卸载旧版本及使用npx命令创建新项目的步骤。
2050

被折叠的 条评论
为什么被折叠?



