狸窝
2017-03-13 14:50
、
这个错误是什么意思?谢谢
如果不是全局安装webpack,前面两节的webpack hello.js hello.bundle.js都会报错,说webpack不是内部或者外部命令
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.
webpack深入与实战
86561 学习 · 721 问题
相似问题