If I change the version of bundler required in a Gemfile, and then type bundle
, I get
Bundler could not find compatible versions for gem "bundler": In Gemfile: bundler (>= 1.10.2) ruby Current Bundler version: bundler (1.9.9) This Gemfile requires a different version of Bundler. Perhaps you need to update Bundler by running `gem install bundler`? Could not find gem 'bundler (>= 1.10.2) ruby in any of the sources
Is it possible to ask bundler to install the new version of bundler, rather than typing in gem install bundler
?
The most common question I've heard about Bundler is about the difference between bundle install and bundle update . In a nutshell: bundle install handles changes to the Gemfile and bundle update upgrades gems that are already managed by Bundler.
bundle update is a command provided by the Bundler gem which will update all your gem dependencies to their latest versions. Providing you have a Gemfile. lock pre-existing, running bundle install will only install the versions specified in the Gemfile.
Seems like bundler can't bundle itself :)
So you have to run gem install bundler
.
I think you can just run gem update bundler
, right? It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With