webpack --config webpack.conf.js 报错
来源:3-2 由浅入深 webpack - 打包 JS

慕仰4225231
2018-11-27
webpack --config webpack.conf.js
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use “npm” to install the CLI via “npm install -D”.
Do you want to install ‘webpack-cli’ (yes/no):
写回答
1回答
-
qbaty
2018-11-27
npm install webpack-cli -D
需要安装webpack-cli 给webpack,也是新版本的要求00
相似问题