为什么npm start不起作用并给出以下错误消息:

时间:2017-09-19 09:33:17

标签: npm

我有一个关于npm的问题。每当我启动npm时,它都会出现以下错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pomodorclock@1.0.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pomodorclock@1.0.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?

1 个答案:

答案 0 :(得分:0)

首先需要运行npm install才能构建程序包。您可以使用npm start