无法删除ruby 默认源
ringa_lee
ringa_lee 2017-04-22 08:55:50
0
5
713

运行 gem sources --remove https://rubygems.org/,提示如下

source https://rubygems.org not present in cache

改不了源,抓狂呀,依赖包载不下来

ringa_lee
ringa_lee

ringa_lee

reply all(5)
伊谢尔伦

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/
左手右手慢动作

Let’s take a look at the current source first: gem source

It should be http, try changing it to http?

伊谢尔伦

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/

Peter_Zhu

It’s because I’m missing the trailing slash and I don’t have enough reputation to give likes to others

阿神

You’re right, there’s a slash/

at the end
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template