wepack報錯- Insufficient number of arguments or no entry found.


報錯: Insufficient number of arguments or no entry found. Alternatively, run 'webpack(-cli) --help' for usage info.

    或者一直提示 webpack not installed

  1. 打開cmd, wepack -v  查看一下安裝的版本,如果是4以上,先卸載,然后重新安裝4以下的版本
  2 .     卸載:npm  uninstall  webpack  -g 
      重新安裝: npm  install  webpack@3.5.5 -g  --unsafe-perm

  3. 項目目錄下安裝對應版本的webpack:npm install --save-dev webpack@3.5.5 


免責聲明!

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



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM