Npm 我不知道';我不知道发生了什么事

Npm 我不知道';我不知道发生了什么事,npm,Npm,我只是想知道发生了什么,每当我从github下载一些react代码(因为我想检查输出是否有灵感)并使用npm start运行它时,我都会在终端中看到这一点 我该怎么办 sh: react-scripts: command not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! todo-react@0.1.0 start: `react-sc

我只是想知道发生了什么,每当我从github下载一些react代码(因为我想检查输出是否有灵感)并使用npm start运行它时,我都会在终端中看到这一点

我该怎么办

sh: react-scripts: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! todo-react@0.1.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the todo-react@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/markcornejo/.npm/_logs/2021-05-20T09_35_52_922Z-debug.log
Marks-Air:todo-react-master markcornejo$ 

npm start
之前运行
npm install
,以确保安装了所有依赖项。

与Git或GitHub无关。或者说,真的。消息来自
npm
,它告诉您该做什么。因此,在将来:“我应该做什么?”——首先阅读错误消息,特别是当它有一个关于该做什么的提示时。