我想使用纱线时出错

Errors when i want to use yarn

When i write in terminal yarn start , Shows this :

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.

This problem starts when i installed ffmpeg.

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

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