run build 报错

来源:2-1 vue-loader+webpack项目配置

慕运维2375857

2018-08-02 01:02

一直报这个错

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.

 - webpack-command (https://github.com/webpack-contrib/webpack-command)

   A lightweight, opinionated webpack CLI.

We will use "npm" to install the CLI via "npm install -D".

Which one do you like to install (webpack-cli/webpack-command):

已做过的测试npm install  webpack-cli -g 但没用  想知道怎么回事


写回答 关注

1回答

  • qq_沐晓清枫_0
    2018-08-03 15:27:36

    用这个命令安装就可以解决:npm install -D webpack-cli

    金刚安o_o

    我也遇到这个问题了,缺少cli,十分感谢

    2018-08-13 23:16:13

    共 1 条回复 >

Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84606 学习 · 787 问题

查看课程

相似问题