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

Will deleting and reinstalling create-react-app bring problems to my existing project?

自去年 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 创建应用程序时,它已经在您的旧项目中安装了 React 包和脚本。您不再需要 create-react-app 来 运行 这个项目。

您可以随意卸载软件包,只需使用 npx create-react-app 创建您的新项目。