问答详情
源自:2-1 vue-loader+webpack项目配置

run build 报错

一直报这个错

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 但没用  想知道怎么回事


提问者:慕运维2375857 2018-08-02 01:02

个回答

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

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