时间:2020-06-17 11:31:49 | 栏目: | 点击:次
# gem install bundle ERROR: Could not find a valid gem ‘bundle’ (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)这种情况,是被墙了。
# gem sources --remove https://rubygems.org/ https://rubygems.org/ removed from sources # gem sources -a http://ruby.taobao.org/ Error fetching http://ruby.taobao.org/: bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz) # gem sources -a https://ruby.taobao.org/ source https://ruby.taobao.org/ already present in the cache # gem sources -l CURRENT SOURCES https://ruby.taobao.org/ # gem install bundle Fetching: bundler-1.10.6.gem (100%) Successfully installed bundler-1.10.6