使用 devkit 为 ruby 安装 gems

installing gems for ruby with devkit

 GEM CONFIGURATION:
  - :update_sources => true
  - :verbose => true
  - :backtrace => false
  - :bulk_threshold => 1000
  - :sources => []
 REMOTE SOURCES:

我遇到了这个错误

>PS C:\Windows\system32> gem sources --add https://rubygems.org
Error fetching https://rubygems.org:
        Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. - SSL_coygems.org/specs.4.8.gz)

如果您的机器有某种防火墙,请尝试在没有 ssl 的情况下添加 http://rubygems.org