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

为什么我按照老师的操作,但是在打包的时候提示我要装wepack-cli


One CLI for webpack must be installed. These are recommended choices, delivered as separate p

ackages:

 - webpack-cli (https://github.com/webpack/webpack-cli)

   The original webpack full-featured CLI.

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

Do you want to install 'webpack-cli' (yes/no):


提问者:qq_那年阳光正好_0 2019-12-02 14:32

个回答

  • Jenky奇
    2020-02-10 16:31:18

    那怎么解决呀? 使用webpack-cli,还是更改到webpack3?怎么更改?

  • 春白
    2020-01-06 18:00:49

    webpack4 需要安装webpack-cli ,他的课程是webpack3

  • 暴走大熊
    2019-12-03 15:54:56

    npm webpack -v看一下你的版本号