Error fetching https://ruby.taobao.org/: bad response Not Found 404 解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/August_leo/article/details/82285393

前言:

安装ruby替换国内淘宝源的时候cmd报错:

Error fetching https://ruby.taobao.org/:
bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

原因:

原来淘宝的gem源已经停止维护,现在由ruby-china提供镜像服务

解决方法:

把地址换成:https://gems.ruby-china.com

gem source -a https://gems.ruby-china.com

安装完以后,输入以下命令查看是否替换成功

gem sources -l

若结果是:

*** CURRENT SOURCES ***

https://gems.ruby-china.com

即替换成功

猜你喜欢

转载自blog.csdn.net/August_leo/article/details/82285393