npm 安裝錯誤及處理方法

@木塵發表於2017-04-24

npm 安裝錯誤及處理方法

unable to verify the first certificate(無法驗證第一證書)

原因:
2014年2月27日,npm不再支援自簽名證書。
因為npm install走的是https協議,需要通過數字證書來保證的
解決:
取消ssl驗證
npm config set strict-ssl false

相關文章