运行 gem sources --remove https://rubygems.org/,提示如下
source https://rubygems.org not present in cache
改不了源,抓狂呀,依赖包载不下来
伊谢尔伦2017-04-22 08:57:50
The source may have been deleted.
As @Please call me Wang Er said, you can view the current source list:
gem sources
# 或
gem sources -l
Or join Taobao’s ruby mirror source:
gem sources -a http://ruby.taobao.org/
ringa_lee2017-04-22 08:57:50
Let’s take a look at the current source first: gem source
It should be http, try changing it to http?
伊谢尔伦2017-04-22 08:57:50
gem source See what string the source is (it should be https://rubygems.org/ with a slash at the end)
Then execute gem source --remove https://rubygems.org/
天蓬老师2017-04-22 08:57:50
It’s because I’m missing the trailing slash and I don’t have enough reputation to give likes to others