Error installing Bundler

后端 未结 13 978
感情败类
感情败类 2020-12-05 07:17

I am trying to install the Bundler gem on my Mac. With the command: sudo gem install bundler I get the following error:

ERROR:  Could not find a         


        
13条回答
  •  Happy的楠姐
    2020-12-05 07:42

    1. Here is my error when I input the command sudo gem install bundler --no-ri --no-rdoc.

    ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/latest_specs.4.8.gz)

    1. And my solution is input the next command lines:

    gem sources --remove https://rubygems.org/

    gem sources --remove http://rubygems.org/

    gem sources -l

    and the output show:

    *** CURRENT SOURCES *** http://rubygems.org/

    1. Then, try sudo gem install bundler --no-ri --no-rdoc again:

    Fetching: bundler-1.11.2.gem (100%) Successfully installed bundler-1.11.2 1 gem installed

    Bingo!!!

提交回复
热议问题