解决 gem 添加sources的时候提示 too many connection resets的问题

版权声明:版权声明:本文为博主原创文章,转载请注明出处!!!(●'◡'●) https://blog.csdn.net/xiaocy66/article/details/83902319

今天在安装ruby、gem的时候,发现在添加淘宝源的时候提示出错信息:“too many connection resets…”,后来发现淘宝镜像已经没有了,改成ruby china来提供镜像了,并且在添加这个源的时候,域名要用.com不能用.org(好像是因为备案原因不能用)。
ruby版本:ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]

用下面的命令即可:
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaocy66/article/details/83902319