The CLI moved into a separate package:webpack-cli.
Please install ' webpack-cli ' on addition to webpack itself the CLI.
When using NPM:NPM install Webpack-cli-d
When using Yarn:yarn add webpack-cli-d
j:\demo>cnpm Install webpack-cli-g
Downloading WEBPACK-CLI to C:\Users\zgj\AppData\Roaming\npm\node_modules\webpack-cli_tmp
Copying C:\users\zgj\appdata\roaming\npm\node_modules\webpack-cli_tmp\[email protected] @webpack-cli to C:\Users\ Zgj\appdata\roaming\npm\node_modules\webpack-cli
Installing WEBPACK-CLI ' s dependencies to C:\users\zgj\appdata\roaming\npm\node_modules\webpack-cli/node_modules
[1/25] [Email protected]^1.0.4 installed at Node_modules\[email protected] @interpret
[2/25] [Email protected]^3.5.0 installed at Node_modules\[email protected] @diff
[3/25] [Email protected]^6.0.5 installed at Node_modules\[email protected] @cross-spawn
[4/25] [Email protected]^1.0.0 installed at Node_modules\[email protected] @global-modules
[5/25] [Email protected]^2.3.2 installed at Node_modules\[email protected] @chalk
[6/25] [Email protected]^2.2.0 installed at Node_modules\[email protected] @log-symbols
[7/25] [Email protected]^8.2.0 installed at Node_modules\[email protected] @got
[8/25] [Email protected]^1.1.0 installed at Node_modules\[email protected] @loader-utils
[9/25] [Email protected]^4.0.0 installed at Node_modules\[email protected] @enhanced-resolve
[10/25] [Email protected]^3.1.0 installed at Node_modules\[email protected] @glob-all
[11/25] [Email protected]^5.3.0 existed at Node_modules\[email protected] @supports-color
[12/25] [Email protected]^0.5.1 installed at Node_modules\[email protected] @mkdirp
[13/25] [Email protected]^1.0.0 installed at Node_modules\[email Protected]@p-lazy
[14/25] [Email protected]^1.0.0 installed at Node_modules\[email protected]@p-each-series
[15/25] [Email protected]^1.1.2 installed at Node_modules\[email protected] @v8-compile-cache
[16/25] [Email protected]^2.0.0 installed at Node_modules\[email protected] @resolve-CWD
[17/25] [Email protected]^11.0.0 installed at Node_modules\[email protected] @yargs
[18/25] [Email protected]^4.17.5 existed at Node_modules\[email protected] @lodash
[19/25] [Email protected]^2.0.0 installed at Node_modules\[email protected] @yeoman-environment
[20/25] [Email protected]^2.0.3 installed at Node_modules\[email protected] @yeoman-generator
[21/25] [Email protected]^1.5.3 installed at Node_modules\[email protected] @prettier
[22/25] [Email protected]^1.1.5 installed at Node_modules\[email protected] @webpack-addons
[23/25] [Email protected]^0.5.0 installed at Node_modules\[email protected] @jscodeshift
[24/25] [Email protected]^0.13.0 installed at Node_modules\[email protected] @listr
[25/25] [Email protected]^5.1.0 installed at Node_modules\[email protected] @inquirer
deprecate [email protected]›[email protected]^6.9.0???? Thanks for using babel:we recommend using babel-preset-env now:please read babeljs.io/env to update!
deprecate [Email protected]›[email protected]^1.8.1 package no longer supported. Contact [e-mail protected] for more info.
Recently Updated (since 2018-03-04): packages (detail See file C:\Users\zgj\AppData\Roaming\npm\node_modules\ Webpack-cli\node_modules\.recently_updates.txt)
2018-03-10
→[email protected]^8.2.0 (8.3.0) (00:57:36)
→[email protected]›[email protected]^1.1.2 (1.2.0) (14:48:40)
2018-03-09
→[email protected]›[email protected]›[email protected]^4.0.1 (4.1.2) (01:58:33)
→[email protected]›[email protected]^0.14.1 (0.14.5) (23:50:22)
→[email protected]›[email Protected]›[email protected] (0.11.3) (23:39:04)
2018-03-08
→[email protected]›[email protected]^0.* (0.67.1) (14:44:43)
→[email protected]›[email protected]›[email protected]›[email protected]›[email protected]^2.1.4 (2.6.0) (06:20:44 )
2018-03-07
→[email protected]^0.5.0 (0.5.0) (13:00:01)
→[email protected]›[email protected]›[email protected]›[email protected]^1.0.0 (1.1.1) (19:46:42)
2018-03-06
→[email protected]›[email protected]^0.4.0 (0.4.0) (23:01:51)
2018-03-05
→[email protected]^3.5.0 (3.5.0) (12:22:54)
All packages Installed (443 packages installed from NPM registry, used 16s, Speed 694.66kb/s, JSON 397 (720.33kB), tarball 10.43MB)
[[email protected]] link C:\users\zgj\appdata\roaming\npm\[email protected], C:\Users\zgj\AppData\Roaming\npm\ Node_modules\webpack-cli\bin\webpack.js
J:\demo>webpack-v
4.1.1
The CLI moved into a separate package:webpack-cli. Workaround