reactjs - 删除并重新安装 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-appnpm install -g create-react-app
然后重新安装。我想知道这是否会对我的其他(非常重要的)项目和运行它造成任何问题npm start
解决方案
当您使用创建应用程序时create-react-app
,它已经在您的旧项目中安装了反应包和脚本。您不再需要create-react-app
运行此项目。
随意卸载该软件包并仅用于npx create-react-app
创建您的新项目。
推荐阅读
- node.js - 获取 CoreMongooseArray 而不是普通数组
- c++ - 使用构造函数初始化您的类,该构造函数将 std::map 作为带有大括号的初始化程序的参数
- c# - 用于 DynamicExpression.ParseLambda 的 TryParse
- sql - 自然连接的维恩图
- ruby-on-rails - 将 whois rubygem 与 -h 标志一起使用
- node.js - 我需要一些关于 discord bot 中禁止命令的帮助
- ios - 在 App Store 上发布应用程序时出现问题 [非公开 API 使用]
- python - 如何在 Python 中文件的特定位置插入十六进制值?
- ios - 从手动安装转移到通过 Xcode 中的 Cocoapods 使用 Realm
- php - 每次在字符串中出现标签时执行一个函数