在执行create-react-app demo创建项目的时候,报错。提示以下信息

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.

解决办法:
首先卸载create-react-app

npm uninstall -g create-react-app

然后重新安装

npm i create-react-app -g

最后再次执行create-react-app demo即可

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐