使用vue-cli創建項目後,npm init常出現以下問題:PhantomJS not found on PATH 這是因為文件phantomjs-2.1.1-windows.zip過大,網絡不好容易下載失敗。 方法一: 可以使用cnpm安裝,這樣速度會快一些 cnpm的安裝方法: npm install -g cnpm --registry=https://registry