Cordova,npm執行命令過程中自動下載資源報:PKIX path building failed,即證書校驗錯誤

問題案例:Could not resolve com.soundcloud.android:android-crop:1.0.0.
      > Could not get resource 'https://jcenter.bintray.com/com/soundcloud/android/android-crop/1.0.0/android-crop-1.0.0.pom'.
         > Could not GET 'https://jcenter.bintray.com/com/soundcloud/android/android-crop/1.0.0/android-crop-1.0.0.pom'.
            > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification pat
h to requested target
 

在終端下執行以下命令,關閉證書驗證:npm config set strict-ssl false,

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章