Closed1
Windowsでraw.githubusercontent.comのソースがSSLエラーで取得できない
備忘録
やりたかったこと
Nuxt.jsのインストール
やったこと
windowsの任意ディレクトリで以下のコマンド実行
> npx nuxi@latest init test-app
出たエラー
ERROR Error: Failed to download template from registry: Failed to download https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: TypeError: fetch failed
CURLも失敗
> curl -I https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - 失効の関数は証明書の失効を確認できませんでした。
暫定対応
インストール前にSSLの失効チェックを無効化(セキュリティが下がるので注意)
> set NODE_TLS_REJECT_UNAUTHORIZED=0
Warningや警告が出るがインストールはできる
完了後有効に戻す
> set NODE_TLS_REJECT_UNAUTHORIZED=1
以前は起こらなかったが、そういえばPC新調してから初めてのインストールだった。
windows10と11のセキュリティの違いかも。
このスクラップは2024/11/27にクローズされました