在运行vue项目时报如下问题:
E:\mobile_real\mobile-vue>npm run dev
> [email protected] dev E:\mobile_real\mobile-vue
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.Js
npm ERR! code EliFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.Js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\FKT00120\AppData\Roaming\npm-cache\_logs\2019-05-27T01_45_54_024Z-deBUG.log
查阅资料发现是webpack新版BUG,卸载现有webpack,安装老版本即可
解决办法:
1、npm uninstall webpack-dev-server
2、npm install [email protected]
3、npm run dev
总结以上是内存溢出为你收集整理的vue npm run dev报错webpack-dev-server全部内容,希望文章能够帮你解决vue npm run dev报错webpack-dev-server所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)