码迷,mamicode.com
首页 > Web开发 > 详细

webpack-dev-server报错

时间:2019-03-26 15:18:21      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:pac   com   ESS   deb   status   nal   lifecycle   ogg   let   

运行npm run dev报错,----

webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue_test@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 vue_test@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\admin\AppData\Roaming\npm-cache\_logs\2019-03-26T03_47_45_865Z-debug.log

 

原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好。

(1)npm uninstall webpack-dev-server

(2)npm install webpack-dev-server@2.9.1

(3)npm run dev

webpack-dev-server报错

标签:pac   com   ESS   deb   status   nal   lifecycle   ogg   let   

原文地址:https://www.cnblogs.com/ertingbo/p/10600042.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!