Bundle install could not find compatible versions for gem “bundler”

前端 未结 4 1807
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 19:25

When I type bundle install I got this error. I tried to find solution but nothing solve my case. Please help me.

 Bundler could not find compatible versions          


        
4条回答
  •  难免孤独
    2020-12-28 20:26

    You don't need to uninstall the newest version of bundler (especially if you have other applications).

    First find the bundler version that you need. For example, after running bundle install:

    Could not find gem 'bundler (>= 1.3.0, < 2.0)', which is required by gem 'rails (~> 4.2)', in any of the sources.
    

    I need any version between 1.3.0 and 2.0. Hence, I would go for bundler 1.9.

    Then, install the bundler:

    gem install bundler -v 1.9
    

    Run that bundler version to install gems:

    bundler _1.9_ install
    

提交回复
热议问题