嗨,我刚刚从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安装依赖项? 我该怎么办?
答案 0 :(得分:2)
尚未安装依赖项。运行npm install
安装依赖项,然后可以运行npm start
。