1
0

curlの証明書エラーを回避してVoltaをインストールする

Posted at

Voltaをインストールする際にcurlの証明書エラーでハマったので回避方法をメモしておく。

公式のコマンド

curl https://get.volta.sh | bash

証明書エラー回避コマンド

curl -k https://get.volta.sh | sed 's/curl --/curl -k --/g' | bash

コマンドの説明

一般的にcurlコマンドで証明書エラーを回避するには-k or --insecureオプションを付ける。

公式のシェルスクリプトhttps://get.volta.shは内部でもcurlコマンドが使用されており、単純に-kオプションを付けるだけではうまくいかない。

そのため、sedコマンドでシェルスクリプト内のcurlコマンドにも-kオプションを差し込んで実行している。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0