build运行失败

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

慕运维4553368

2018-08-01 11:04

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

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


写回答 关注

1回答

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

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

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

Vue+Webpack打造todo应用

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

84606 学习 · 787 问题

查看课程

相似问题