Error: self signed certificate in certificate chain
npm の場合は以下。
npm set strict-ssl false
git の場合は以下。
git config --global http.sslVerify false
Apache Cordova for Visual Studio とかでビルドしようとしたときに、npm と git が各種プラグインをダウンロードとかクローンするときに上記のエラーを吐いてました。
プロキシを指す必要がある場合は以下も実行。
npm の場合は以下。
npm config set http-proxy http://xxx.xxx.xxx.xxx:8080/
npm config set https-proxy http://xxx.xxx.xxx.xxx:8080/
git の場合は以下。
git config --global http.proxy http://xxx.xxx.xxx.xxx:8080/
git config --global https.proxy http://xxx.xxx.xxx.xxx:8080/
会社のネットワーク環境が劇的に変わってビルドできなくなった。
プロキシとかめんどくさい、いろいろビルドできなくなったりしてる。