从github拉出后Npm开发服务器将无法启动

时间:2019-12-04 21:29:59

标签: node.js reactjs github

嗨,我刚刚从GitHub用户克隆了我的项目,现在npm start将无法启动开发服务器... 它发送此错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! airlines@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the airlines@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?

也许我必须从package.json安装依赖项? 我该怎么办?

1 个答案:

答案 0 :(得分:2)

尚未安装依赖项。运行npm install安装依赖项,然后可以运行npm start