各种重装还是报错,就是默认的项目,没有修改过的
来源:5-2 vue-cli安装(下)

jae
2017-06-22
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-demo@1.0.0 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-demo@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additiona l logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-06 -22T11_23_56_656Z-debug.log
1回答
-
fishenal
2017-06-23
https://stackoverflow.com/questions/30744964/what-does-the-elifecycle-node-js-error-mean
23down vote
It's basically saying it fails to spawn your process not due to permission but to an error in your script. Source
You don't have any problem executing NODE_ENV=production node app.js ?
基本上说不是权限问题,是脚本里的error导致的,试着执行一下 NODE_ENV=production node app.js 看能不能跑。
检查一下build/dev-server.js, 一段一段删着看,定位问题。
我说的默认项目,是用vue init 初始化的空项目,不是我课程里的代码,也有可能一些新的更新不兼容旧版本。
00
相似问题