【问题标题】:安装纱线后 create-react-app 不起作用
【发布时间】:2022-01-21 00:46:41
【问题描述】:

我想切换到 YARN 包安装程序,所以我在全局范围内安装了它。当我这样做时,我的 create-react-app 不再工作了。

日志:

【问题讨论】:

  • 纱线创建 react-app app-name |此命令用于使用 yarn 命令创建新应用

标签: node.js reactjs yarnpkg


【解决方案1】:

npx 用于运行 npm 包,无需在系统中安装它们。但是如果你已经在你的机器上用 yarn 或 npm 全局安装了一个像 create-react-app 这样的包,那么你可以写 create-react-app learning 而不是 npx create-react-app learning

【讨论】:

    猜你喜欢
    • 2021-01-05
    • 1970-01-01
    • 2021-09-11
    • 2022-01-22
    • 2018-10-04
    • 2021-01-03
    • 2018-11-08
    • 2017-09-11
    • 1970-01-01
    相关资源
    最近更新 更多