解决vue项目运行过程中,npm run dev 报错问题
ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! metools@1.0.0 dev: `node build/dev-server.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the metools@1.0.0 dev script.npm ERR! This is probably not a
·
ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! metools@1.0.0 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metools@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! errno 1
npm ERR! metools@1.0.0 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metools@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\think\AppData\Roaming\npm-cache\_logs\2018-03-29T02_46_46_622Z-debug.log
这个是报 的错误,原因是 webpack 的新版本的BUG,解决方法就是卸载新版本,安装老版本
命令:
npm remove webpack-dev-server
npm install webpack-dev-server@2.9.1
npm run dev
更多推荐
已为社区贡献3条内容
所有评论(0)