为了账号安全,请及时绑定邮箱和手机立即绑定

npm run build 打包报错

npm run build 打包报错

慕粉3176926 2018-06-05 20:47:18
> webpack --config webpack.config.jsOne 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 也安装了求大神指教
查看完整描述

2 回答

?
qq_简_59

TA贡献1条经验 获得超0个赞

npm install webpack-cli -g
执行一下

查看完整回答
反对 回复 2018-06-28
?
元气满满GO

TA贡献92条经验 获得超16个赞

npm不要随便升级

查看完整回答
反对 回复 2018-06-10
  • 2 回答
  • 0 关注
  • 2123 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信