码迷,mamicode.com
首页 > Web开发 > 详细

webpack 打包报错:One CLI for webpack must be installed. These are recommended choices, delivered as separate packages

时间:2019-04-18 18:38:40      阅读:299      评论:0      收藏:0      [点我收藏+]

标签:ima   --   web   info   rate   save   全局   webpack   The   

 

webpack 打包报错:

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

技术图片

 

 

解决办法:

全局、局部安装个遍!具体什么原因还不清楚...

先全局安装webpack和webpack-cli
npm install webpack -g
npm install webpack-cli -g
再局部安装webpack和webpack-cli
npm install webpack --save-dev
npm install webpack-cli --save-dev

 

webpack 打包报错:One CLI for webpack must be installed. These are recommended choices, delivered as separate packages

标签:ima   --   web   info   rate   save   全局   webpack   The   

原文地址:https://www.cnblogs.com/zhangym118/p/10731408.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!