问题描述:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! infoq-example@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the infoq-example@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:
在运行infoq-vue-example
项目时,安装好依赖后,运行npm run dev
一直提示报错,显示上面的错误信息。
解决方案:
当前我电脑安装的版本是2.9.6,这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好:
cnpm uninstall webpack-dev-server
cnpm install webpack-dev-server@2.9.1
cnpm run dev
网友评论