卸载后重新安装
1.删除全局webpack
$ npm uninstall -g webpack
2.删除本地webpack
$ npm un webpack
重新安装:
1.全局安装固定版本webpack:
$ npm install webpack@1.15.0 -g
2.局部安装固定版本webpack:
npm install webpack@1.15.0 --save-dev
3.查看 webpack -v
$ webpack -v
卸载后重新安装
1.删除全局webpack
$ npm uninstall -g webpack
2.删除本地webpack
$ npm un webpack
重新安装:
1.全局安装固定版本webpack:
$ npm install webpack@1.15.0 -g
2.局部安装固定版本webpack:
npm install webpack@1.15.0 --save-dev
3.查看 webpack -v
$ webpack -v
本文标题:WebPack 安装
本文链接:https://www.haomeiwen.com/subject/zuysvftx.html
网友评论