1. 程式人生 > >解決 gem 新增sources的時候提示 too many connection resets的問題

解決 gem 新增sources的時候提示 too many connection resets的問題

今天在安裝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