简体   繁体   中英

Old Bundler gem version being used by Rails

We recently moved to Rails 4. I have run 'bundle update' (after removing the Gemfile.lock files). I have run into the below problem:

rails s

stops giving the following error message:

Bundler could not find compatible versions for gem "bundler":

In Gemfile: ryp depends on bundler (< 2.0, >= 1.3.0)

Current Bundler version: bundler (1.0.15)

But I have checked that the bundler version is 1.3.5 as follows:

bundle version

Bundler version 1.3.5

And tried to uninstall 1.0.15 version as follows:

gem uninstall bundler --version 1.0.15

which results in this message:

INFO: gem "bundler" is not installed

How can I fix the above problem ?

If you're using gemsets, something that's worked for me in the past is uninstalling the version of bundler that is in your global gemset:

rvm gemset use global
gem uninstall bundler

Then switch back to whatever gemset your project uses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM