创建新的Reaction应用程序时出错("您正在运行`Create-Reaction-app`4.0.3,它是最新版本(5.0.0)"之后的版本) [英] Error while creating new React app ("You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0)")

查看:35
本文介绍了创建新的Reaction应用程序时出错("您正在运行`Create-Reaction-app`4.0.3,它是最新版本(5.0.0)"之后的版本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一次又一次地收到此Create Reaction应用程序错误,即使在执行卸载部分之后也是如此。

npm uninstall -g create-react-app

最新,审核了1个包裹,时间为570ms

发现0个漏洞

npx create-react-app test-app

需要安装以下软件包:Create-Reaction-app确定 继续吗?(Y)y

您正在运行create-react-app4.0.3,它是最新版本 版本(5.0.0)。

我们不再支持全局安装Create Reaction应用程序。

请使用以下命令之一删除所有全局安装:

  • npm uninstall-g create-action-app
  • 纱线全局删除create-action-app
可在此处找到创建新应用程序的最新说明: https://create-react-app.dev/docs/getting-started/

C:>npm --version
8.3.0
C:>node --version
v16.13.0

如何修复此问题?

推荐答案

尝试运行npx clear-npx-cache以清除您的npx缓存,然后运行npx create-react-app your-app命令。

还可以查看清除缓存的this answer

此外,可能值得尝试使用以下命令强制使用最新版本:

npx create-react-app@latest my-app --use-npm

这篇关于创建新的Reaction应用程序时出错("您正在运行`Create-Reaction-app`4.0.3,它是最新版本(5.0.0)"之后的版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆