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

build运行失败

请问老师,为什么这样呢,我该怎么做

PS C:\xampp\htdocs\test\lianxi\project> npm run build

> project@1.0.0 build C:\xampp\htdocs\test\lianxi\project

> webpack  --config webpack.config.js

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):


提问者:慕运维4553368 2018-08-01 11:04

个回答

  • H2MAX
    2018-08-04 17:58:34

    提示你没有安装webpack-cli,你可以尝试在命令行运行下代码:npm i webpack-cli

    emmm,这种问题,多百度谷歌下就可以找到了