webpack 打包报错:One CLI for webpack must be installed. These are recommended choices, delivered as separate packages

webpack 打包报错:

One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:

webpack 打包报错:One CLI for webpack must be installed. These are recommended choices, delivered as separate packages

解决办法:

全局、局部安装个遍!具体什么原因还不清楚...

先全局安装webpack和webpack-cli
npm install webpack -g
npm install webpack-cli -g
再局部安装webpack和webpack-cli
npm install webpack --save-dev
npm install webpack-cli --save-dev

上一篇:move_base Warning: Invalid argument "/map" passed to canTransform argument target_frame的解决方法


下一篇:Java进阶面试题列表