本文环境:macos

报错信息:

unable to access 'https://github.com/nvm-sh/nvm.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60

主要是代理导致的(ipv6引起),可以尝试关闭代理软件再次执行。

如果还报错,则可以尝试执行如下命令:

networksetup -setv6off Wi-Fi