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

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\_webpack-cli@2.0.11@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] interpret@^1.0.4 installed at node_modules\_interpret@1.1.0@interpret
[2/25] diff@^3.5.0 installed at node_modules\_diff@3.5.0@diff
[3/25] cross-spawn@^6.0.5 installed at node_modules\_cross-spawn@6.0.5@cross-spawn
[4/25] global-modules@^1.0.0 installed at node_modules\_global-modules@1.0.0@global-modules
[5/25] chalk@^2.3.2 installed at node_modules\_chalk@2.3.2@chalk
[6/25] log-symbols@^2.2.0 installed at node_modules\_log-symbols@2.2.0@log-symbols
[7/25] got@^8.2.0 installed at node_modules\_got@8.3.0@got
[8/25] loader-utils@^1.1.0 installed at node_modules\_loader-utils@1.1.0@loader-utils
[9/25] enhanced-resolve@^4.0.0 installed at node_modules\_enhanced-resolve@4.0.0@enhanced-resolve
[10/25] glob-all@^3.1.0 installed at node_modules\_glob-all@3.1.0@glob-all
[11/25] supports-color@^5.3.0 existed at node_modules\_supports-color@5.3.0@supports-color
[12/25] mkdirp@^0.5.1 installed at node_modules\_mkdirp@0.5.1@mkdirp
[13/25] p-lazy@^1.0.0 installed at node_modules\_p-lazy@1.0.0@p-lazy
[14/25] p-each-series@^1.0.0 installed at node_modules\_p-each-series@1.0.0@p-each-series
[15/25] v8-compile-cache@^1.1.2 installed at node_modules\_v8-compile-cache@1.1.2@v8-compile-cache
[16/25] resolve-cwd@^2.0.0 installed at node_modules\_resolve-cwd@2.0.0@resolve-cwd
[17/25] yargs@^11.0.0 installed at node_modules\_yargs@11.0.0@yargs
[18/25] lodash@^4.17.5 existed at node_modules\_lodash@4.17.5@lodash
[19/25] yeoman-environment@^2.0.0 installed at node_modules\_yeoman-environment@2.0.5@yeoman-environment
[20/25] yeoman-generator@^2.0.3 installed at node_modules\_yeoman-generator@2.0.3@yeoman-generator
[21/25] prettier@^1.5.3 installed at node_modules\_prettier@1.11.1@prettier
[22/25] webpack-addons@^1.1.5 installed at node_modules\_webpack-addons@1.1.5@webpack-addons
[23/25] jscodeshift@^0.5.0 installed at node_modules\_jscodeshift@0.5.0@jscodeshift
[24/25] listr@^0.13.0 installed at node_modules\_listr@0.13.0@listr
[25/25] inquirer@^5.1.0 installed at node_modules\_inquirer@5.1.0@inquirer
deprecate jscodeshift@0.5.0 › babel-preset-es2015@^6.9.0 ???? Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
deprecate jscodeshift@0.5.0 › nomnom@^1.8.1 Package no longer supported. Contact support@npmjs.comfor more info.
Recently updated (since 2018-03-04): 11 packages (detail see file C:\Users\zgj\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\.recently_updates.txt)
2018-03-10
→ got@^8.2.0(8.3.0) (00:57:36)
→ jscodeshift@0.5.0 › colors@^1.1.2(1.2.0) (14:48:40)
2018-03-09
→ yeoman-generator@2.0.3 › cross-spawn@5.1.0 › lru-cache@^4.0.1(4.1.2) (01:58:33)
→ jscodeshift@0.5.0 › recast@^0.14.1(0.14.5) (23:50:22)
→ jscodeshift@0.5.0 › recast@0.14.5 › ast-types@0.11.3(0.11.3) (23:39:04)
2018-03-08
→ jscodeshift@0.5.0 › flow-parser@^0.*(0.67.1) (14:44:43)
→ yeoman-generator@2.0.3 › read-pkg-up@3.0.0 › read-pkg@3.0.0 › normalize-package-data@2.4.0 › hosted-git-info@^2.1.4(2.6.0) (06:20:44)
2018-03-07
→ jscodeshift@^0.5.0(0.5.0) (13:00:01)
→ yeoman-generator@2.0.3 › mem-fs-editor@3.0.2 › vinyl@2.1.0 › cloneable-readable@^1.0.0(1.1.1) (19:46:42)
2018-03-06
→ got@8.3.0 › p-cancelable@^0.4.0(0.4.0) (23:01:51)
2018-03-05
→ diff@^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)
[webpack-cli@2.0.11] link C:\Users\zgj\AppData\Roaming\npm\webpack-cli@ -> 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.解决办法的更多相关文章

  1. sublime text 3 无法安装Package Control插件解决办法

    sublime text 3 无法安装Package Control插件解决办法 ***关于sublime text 3 常用的 Package Control插件的安装方法*** 1.CTRL+` ...

  2. 出现No package gcc+ available解决办法

    系统 CentOS Linux release 7.4.1708 (Core)   安装gcc时报错 [root@ip---- node-v10.15.3]# yum -y install gcc+ ...

  3. ubuntu-E:Encountered a section with no Package: header的解决办法 (转)

    E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/cn.arch ...

  4. ubuntu-E:Encountered a section with no Package: header的解决办法

    刚才打开ubuntu,我的版本是12.04.正想使用sudo apt-get install build-essential 时,出现了如下错误: E:Encountered a section wi ...

  5. Unable to locate package python3 错误解决办法

    错误 huny@DESKTOP-N1EBKQP:/mnt/c/Users/Administrator$ sudo apt-get install python3 Reading package lis ...

  6. Visual Studio 2010 更新NuGet Package Manager出错解决办法

    在Visual Studio 2010的扩展管理器中发现NuGet Package Manger有最新版本更新提示,选择更新安装提示以下错误信息: 2013/4/25 1:11:48 - Micros ...

  7. ruby TkPackage can't find package BWidget 之解决办法

    一个特别短的ruby/tk代码: require 'tkextlib\iwidgets' require 'tkextlib\bwidget' x = 0 101.times {|i| x+=i} T ...

  8. Flutter 卡在 package get 的解决办法

    今天在尝试使用Flutter 的时候,需要使用一个第三方库 修改了 pubspec 文件之后,AS 像往常一样提示 需要 package get. 之前都挺正常,不知道今天怎么了. 一直处在 Runn ...

  9. yum与apt命令比较,yum安装出现No package vim available解决办法

    yum (Yellowdog Updater Modified)是一个集与查找,安装,更新和删除程序的Linux软件.它运行在RPM包兼容的Linux发行版本上,如:RedHat, Fedora, S ...

随机推荐

  1. 关于IWMS后台登录问题总结

    一.登录后台,点击登录无反应: 1.是因为网站文件夹没有权限,需要右击文件夹,将只读勾选去掉 2.在安全中加入Everyone对象. 二.登录后台后,左边显示不全,是因为会员权限不够,需要给权限.

  2. Yii2的save()方法容易出错的地方

    如果save()返回true, 但是数据没有保存成功,则应该是开启了事务且已经回滚 如果save()返回false, 则使用$model->errors查看错误原因 可以设置$model的场景, ...

  3. js 持续访问保持session对象不消失

    $(function(){ publicBusi(); }) //实时刷新登录用户信息 function publicBusi(){ setTimeout(publicBusi,1000*60*10) ...

  4. react 自我小计

    1.react中的方法调用,在onClick事件中不需要加小括号. <button onClick={this.show}>方法的调用</button> show(){ con ...

  5. C# 获取文件详细备注信息 (如图片、视频实际创建时间)

    在整理照片/视频时想根据实际拍摄时间重命名文件,但 System.IO.FileInfo 只能获取到文件的创建时间或最后写入时间,不符合要求,遂寻找解决方案 方案 1: System.Drawing ...

  6. faster rcnn训练自己的数据集

    采用Pascal VOC数据集的组织结构,来构建自己的数据集,这种方法是faster rcnn最便捷的训练方式

  7. C# 调用短信接口

    using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net ...

  8. CentOS 安装、配置supervisord

    负责在启动自身时启动管理的子进程,响应客户端的命令,重启崩溃或退出的子进程,记录子进程stdout和stderr输出,生成和处理子进程生命周期中的事件. 安装yum install superviso ...

  9. POJ 3020 -Antenna Placement-二分图匹配

    题意:一个N*M的矩阵里有K个观测点,你必须放置天线覆盖所有观测点.每个雷达只能天线两个观测点,这两点必须相邻.计算最少天线数. 做法:将所有相邻的观测点连起来,建图.跑一遍匈牙利算法就计算出了最大的 ...

  10. SQL 对等发布

    发布类型: 快照发布:发布服务器按预定的时间间隔向订阅服务器发送已发布数据的快照.事务发布:在订阅服务器收到已发布数据的初始快照后,发布服务器将事务流式传输到订阅服务器.对等发布:对等发布支持多主复制 ...