删除并重新安装create-react-app会给我现有的项目带来问题吗?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了删除并重新安装create-react-app会给我现有的项目带来问题吗?相关的知识,希望对你有一定的参考价值。

自去年10月以来,我一直在开发一个create-react-app应用程序。我现在要开始另一个,但是我得到了A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported.错误。

我阅读了文档并解决了这个问题,我应该先卸载create-react-app npm install -g create-react-app,然后再重新安装。我想知道这是否会对我的其他(非常重要)项目造成任何问题,并使用npm start

运行它
答案

[使用create-react-app创建应用程序时,它已经在旧项目中安装了自己的程序包。

更新全局create-react-app程序包不会导致旧项目出现问题。这只会导致每个新创建的项目都使用更新的React包创建。

随时更新您的全局create-react-app程序包。

以上是关于删除并重新安装create-react-app会给我现有的项目带来问题吗?的主要内容,如果未能解决你的问题,请参考以下文章

npx create-react-app my-app 创建后删除已安装的 node_modules 包?

npx create-react-app 不工作“必须使用导入来加载 ES 模块:” [关闭]

create-react-app 创建的项目执行npm run eject后,运行报错

完全删除并重新安装mysql [关闭]

删除并重新安装 iphone 应用后接收本地通知

安装的 Build Tools 版本 31.0.0 已损坏。使用 SDK 管理器删除并重新安装