【发布时间】:2018-08-06 02:21:48
【问题描述】:
我安装了最新版本的 webpack:
"webpack": "^4.0.0",
"webpack-cli": "^2.0.9"
然而,当我在终端中运行 webpack 时,我得到以下信息:
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
-> When using npm: npm install webpack-cli -D
-> When using yarn: yarn add webpack-cli -D
【问题讨论】: