React创建项目报错:You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

使用React脚手架创建项目,报错:

create-react-app app2

在这里插入图片描述
在这里插入图片描述

如果您之前已create-react-app通过 全局安装

npm install -g create-react-app

意思是有新版本了,之前安装的版本低了

1.可以先卸载

npm uninstall -g create-react-app

2.然后再使用npx临时安装:

npx create-react-app my-app

3.如果还不行就加上版本号

npx create-react-app@5.0.1 yourApp 

若本文对你有帮助 点个赞 点个关注

猜你喜欢

转载自blog.csdn.net/ZLJ_999/article/details/124169466