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


 

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 webpack One CLI for webpack must be installed. These are recommended choices, delivered as separate(webpack報錯) webpack 4.0 安裝出現的小問題 (One CLI for webpack must be installed) webpack學習1:webpack打包報錯 Vue - Vue CLI(2): Webpack打包開啟 Gzip 報錯 Vue -- vue-cli webpack打包開啟Gzip 報錯 webpack 打包 UglifyJs 報錯 webpack-cli bugs All In One vue-cli webpack打包開啟Gzip 報錯—— Cannot find module 'compression-webpack-plugin [one day one question] webpack 打包報錯 Cannot assign to read only property 'exports' of object '#' webpack入門(五)webpack CLI
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM