更新了OS X EI Capitan 出现了source http://ruby.taobao.org/ already present in the cache

来源:互联网 发布:万网个人域名备案 编辑:程序博客网 时间:2024/05/03 19:02

首先删除本地Cocoapods文件,然后发现我执行不了接下来的几个步骤了。所以我就执行平时执行安装pod的命令

出现了错误:

localhost:~ LV$ sudo gem install cocoapodsERROR:  Could not find a valid gem cocoapods (>= 0), here is why:          Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

镜像的http://ruby.taobao.org/明显错误了,因为http

然后我:

localhost:~ LV$ gem sources -l*** CURRENT SOURCES ***http://ruby.taobao.org/

所以我要删除她,更新成https://ruby.taobao.org/

所以我:

localhost:~ LV$ gem sources -a https://ruby.taobao.org/https://ruby.taobao.org/ added to sources
localhost:~ LV$ gem sources -l*** CURRENT SOURCES ***http://ruby.taobao.org/https://ruby.taobao.org/
之后我删除http,但是会报错,我尝试了三次都是这样:

localhost:~ LV$ gem sources -remove http://ruby.taobao.org/source emove not present in cache
但是第四次:

localhost:~ LV$ gem sources --remove http://ruby.taobao.org/http://ruby.taobao.org/ removed from sources
最好:我开始下载最新的Cocoapods

localhost:~ LV$ sudo gem install -n /usr/local/bin cocoapodsPassword:Successfully installed cocoapods-0.39.0Parsing documentation for cocoapods-0.39.01 gem installed
ok了



原文地址http://www.bubuko.com/infodetail-1166458.html

0 0
原创粉丝点击