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

前端 未结 9 1978
再見小時候
再見小時候 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 05:54

    I just faced the same error today. The bundler version which I had installed in my system previously was: 1.16.6

    Followed the instructions in the official bundler docs on How to Upgrade to Bundler 2 and the below two steps did the trick:

    1. gem install bundler (Helps you get the latest version of bundler which as of today is 2.0.2)
    2. bundle update --bundler

提交回复
热议问题