当我在终端写下
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开始。
纱线正在等待 react-scripts
要安装在您的 node_modules
目录。我怀疑你要么是没有安装过,要么是不小心删除了,要么是运行了 yarn start
在错误的目录下。
要解决这个问题,请确保你在正确的目录下,运行 yarn install
. 之后,你应该看到一个 node_modules
目录中带有 react-scripts
里面。那就试试 yarn start
再次。