npm run build 打包报错

> 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、webpack-cli  试过无效

2、webpack 安装了   webpack-cli 也安装了

求大神指教

慕粉3176926
浏览 2124回答 2
2回答

qq_简_59

npm install webpack-cli -g执行一下

元气满满GO

npm不要随便升级
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Vue.js