在npm的安裝時,npm install 出現了This is probably not a problem with npm. There is likely additional logging output above.錯誤!
如下圖:
額外的日志輸出錯誤!!!在網上百度了一般的解決方法,適用於大部分報此類錯誤的方法如下:
由於npm install之后,會記錄信息,把之前裝的刪除
- rm -rf node_modules
- rm package-lock.json
- npm cache clear --force
- npm install
嘗試了許多次,更換head-master版本重新npm install結果都會卡在node install.js,最后選擇了忽略部分依賴成功解決,代碼如下:
nmp install --ignore scripts
npm install