Bundler: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem

前端 未结 9 1973
再見小時候
再見小時候 2020-12-13 05:35

I\'m executing the following script:

gem install rdoc --no-document
gem install bundle
bundle

output:

+ gem install rdoc --         


        
相关标签:
9条回答
  • 2020-12-13 06:07
    gem install bundler -v '< 2.0' 
    
    0 讨论(0)
  • 2020-12-13 06:15

    I saw a similar error message for the travis bundle after upgrading mac os to Catalina.

    Traceback (most recent call last):
        2: from /usr/local/bin/travis:22:in `<main>'
        1: from /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/rubygems.rb:263:in `bin_path'
    /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem travis (>= 0.a) with executable travis (Gem::GemNotFoundException)
    

    To resolve the issue, I reinstalled travis from source.

    brew remove travis;
    brew install -s travis
    
    0 讨论(0)
  • 2020-12-13 06:17

    I faced this same issue. The issue is caused by the fact that RubyGems cannot find an executable bundle for the bundler gem on the system

    To fix it, first run

    gem install bundler

    if you don't have bundler gem installed locally, then run

    gem update --system

    That's all

    I hope this helps

    0 讨论(0)
提交回复
热议问题