程序员人生 网站导航

cocoapods 更新失败 bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

栏目:综合技术时间:2016-05-09 11:20:23

gongmengnandeMacBook-Pro: name$ sudo gem install cocoapods

ERROR:  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)

gongmengnandeMacBook-Pro: name$ sudo gem update --system

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)

    bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)


解决办法换源地址

  1. gem sources --remove http://ruby.taobao.org/ //移除原文件地址 


  2. gem sources -a https://ruby.taobao.org/   //添加新文件地址


  3. gem sources -l    //查看源文件地址是不是正确


  4. sudo gem install cocoapods    //更新

版权声明:本文为博主原创文章,未经博主允许不得转载。

------分隔线----------------------------
------分隔线----------------------------

最新技术推荐