嗨,我刚刚从 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 安装依赖项? 我该怎么办?
最佳答案
依赖项尚未安装。运行npm install
来安装依赖项,然后就可以运行npm start
。
关于node.js - 从 github 拉取后,npm 开发服务器将无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59184919/