Reactjs 使用npx运行create react应用程序时出现问题

Reactjs 使用npx运行create react应用程序时出现问题,reactjs,create-react-app,npx,Reactjs,Create React App,Npx,当我试图使用命令npx create-react-app-app运行create-react-app时,我收到以下消息 You are running `create-react-app` 4.0.1, 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 o

当我试图使用命令
npx create-react-app-app
运行create-react-app时,我收到以下消息

You are running `create-react-app` 4.0.1, 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 uninstall-g create-react-app
全局卸载create-react-app,并再次运行npx命令。我仍然收到相同的消息,我应该全局卸载create-react-app,即使如此,全局安装的唯一模块是我机器上的npm

您首先需要卸载全局安装的模块
创建react app
,然后使缓存无效

相同命令:
npm uninstall-g create react app&&npm cache clean-f

现在,您可以使用以下命令继续创建应用程序:
npx create react app application name


此问题类似于。

在全局卸载create react app后尝试npm cache clean–-force命令