运行 nodemon server.js 时显示错误

Showing error while running nodemon server.js

我已经使用这些命令安装了 nodemon

npm install nodemon

npm 安装成功,

在 运行 nodemon server.js 之后显示错误

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...

也许您可以尝试安装并保存 react-scripts 依赖项,看看是否可以解决您的问题:

npm i -S react-scripts

希望对您有所帮助!