LoginSignup
6
3

More than 5 years have passed since last update.

【Windows】WSLでgit clone や npm install する際に gnutls_handshake() failed: が出る場合の対処法

Posted at

要約

Kasperskyを終了する(インストール作業が終わったらちゃんと再開させましょう)

エラー内容

WSL上でgit clonenpm installすると以下のエラーが出ることがあり非常に困ったことに・・・


$ git clone https://github.com/nodenv/nodenv.git
Cloning into 'nodenv'...
fatal: unable to access 'https://github.com/nodenv/nodenv.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

対処法

私のPCにはウィルス対策ソフトとしてKasperskyが入っているのですが、どうにもそれが悪さをしているっぽい
なので一旦終了させてからインストールすればできました!(自己責任でお願いします)
ウィルス対策ソフトをOFFにするとインストールしている意味がなくなるので、用事が終わったらちゃんと再開させましょう

参考になった記事

下記の記事をヒントに解決できました!ありがとうございます!
Kasperskyが動いているWindows上のWSL UbuntuでPPAを追加できない - Qiita

6
3
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
6
3