報錯: 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