cocoapods ould not find 'cocoapods' (>= 0) among 200 total gem(s) (Gem::LoadError)

遇到问题如下

.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file -- colored (LoadError)
     from /Users/riverhuang/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in `require'
    from /Users/riverhuang/.rvm/gems/ruby-2.1.5@global/gems/cocoapods-0.36.2/lib/cocoapods/user_interface.rb:8:in `'
    from /Users/riverhuang/.rvm/gems/ruby-2.1.5@global/gems/cocoapods-0.36.2/lib/cocoapods/user_interface.rb:7:in `'
    .
    .
    .
    from /Users/riverhuang/.rvm/gems/ruby-2.1.5/bin/pod:23:in `load'
    from /Users/riverhuang/.rvm/gems/ruby-2.1.5/bin/pod:23:in `
' Could not find proper version of cocoapods (0.29.0) in any of the sources Run `bundle install` to install missing gems.

解决方案两个
方案一
重新装一次
方案二

After clear all gem in my computer I finally fixed it. Here is my steps to clear all gems.

gem uninstall --all
sudo gem uninstall --all

After uninstall all gems I reinstall the cocoapods.

sudo gem install cocoapods

Then restart the Terminal and run:

pod setup

你可能感兴趣的:(cocoapods ould not find 'cocoapods' (>= 0) among 200 total gem(s) (Gem::LoadError))