使用htmlWebpackPlugin插件的时候 ,npm run webpack 报错,错误如下
、
这个错误是什么意思?谢谢
、
这个错误是什么意思?谢谢
2017-03-13
npm remove webpack -g
npm i webpack --save-dev
如果是全局安装会报错,此时执行上面两个命令。原因如下:
You have to npm i webpack --save-dev , global install doesn't work.
install it globally if you want the CLI anywhere. ever install it locally in your project if you use webpack. the global CLI will use the locally installed version when installed.
举报