【问题标题】:Errors when i want to use yarn当我想使用纱线时出错
【发布时间】:2020-05-18 23:36:21
【问题描述】:

当我在终端写信时 yarn start ,显示如下:

yarn run v1.22.4
$ react-scripts start
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

这个问题从我安装 ffmpeg 开始。

【问题讨论】:

    标签: javascript reactjs npm yarnpkg


    【解决方案1】:

    Yarn 期望 react-scripts 安装在您的 node_modules 目录中。我怀疑你要么从未安装它,不小心删除了它,要么在错误的目录中运行yarn start

    要修复,请确保您位于正确的目录中,运行 yarn install。之后,您应该会看到一个 node_modules 目录,其中包含 react-scripts。然后再试试yarn start

    【讨论】:

      猜你喜欢
      • 2021-10-07
      • 1970-01-01
      • 2018-01-06
      • 2022-11-10
      • 2023-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-20
      相关资源
      最近更新 更多