卸载:npm uninstall webpack -g

重新安装:npm install webpack@3.7.1 -g

 

直接安装指定版本就行了,如安装 2.4.1 版:cnpm install webpack@2.4.1 -g

posted on 2019-07-09 11:37  潇潇六月雨  阅读(685)  评论(0)    收藏  举报