尝试通过(create-react-app)创建一个新的反应项目它无法正常工作

trying to create a new react project by (create-react-app) it is not working properly

我安装了最新版本的 node.js、react.js 和 next.js 一切正常,但此时我尝试通过 create-react-app my-app 在终端中创建我的 React 项目文件夹,它告诉我:

您是运行create-react-app5.0.0,落后于最新版本(5.0.1)。 我们不再支持全局安装 Create React App。

当我已经在做一个项目时问题就开始了,但是有一天我做了 npm start 我遇到了一个我无法解决的错误,所以我决定创建一个新项目,然后发生了这种情况,最近有没有人得到这个?

尝试删除本地的当前版本并使用最新版本

npm uninstall -g create-react-app
npx clear-npx-cache
npx create-react-app@latest my-app

卸载 create-react-app 和 运行 npx create-react-app@latest。然后您将使用最新版本的 create-react-app