Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: How to change Bundler default version

bundler (2.0.1, default: 1.17.2)

How could I change the default to 2.0.1

like image 957
mmyang Avatar asked Feb 19 '19 07:02

mmyang


People also ask

How can I remove default version of bundler?

You have to delete the . gemspec file corresponding to the default gem you want to delete. So first, locate where those files are. Delete the one you don't need.

How do I upgrade to bundler 2?

Installing Bundler 2 The first step in upgrading to Bundler 2 is installing the Bundler 2 gem. To install it the usual way, run gem install bundler and RubyGems will install the latest version of Bundler.

How do I switch bundler on Mac?

To use different gem versions, you could use this pattern: your-gem _version_ . For example, bundle _1. 10.6_ -v . Hope that will help.


1 Answers

Following https://bundler.io/guides/bundler_2_upgrade.html#upgrading-applications-from-bundler-1-to-bundler-2, here's what worked for me:

gem install --default bundler gem update --system bundler update --bundler 
like image 98
Steve K Avatar answered Sep 24 '22 17:09

Steve K