我爱模板网在使用gem安装依赖时:
1 | sudo gem install -n /usr/ local /bin activesupport - v 6.1.7.3 |
提示下面的错误:
ERROR: Could not find a valid gem 'activesupport' (= 6.1.7.3), here is why:
Unable to download data from https://rubygems.org/ - too many connection resets (https://rubygems.org/specs.4.8.gz)
^CERROR: Interrupted
解决办法就是当前镜像没了,换个镜像试下,如:用下面的命令
1 | gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ |
2 | gem sources -l |