84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
运行 gem sources --remove https://rubygems.org/,提示如下
source https://rubygems.org not present in cache
改不了源,抓狂呀,依赖包载不下来
ringa_lee
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
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/
gem source --remove https://rubygems.org/
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/
The source may have been deleted.
As @Please call me Wang Er said, you can view the current source list:
Or join Taobao’s ruby mirror source:
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/
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