Rails: How to change Bundler default version

mmyang picture mmyang · Feb 19, 2019 · Viewed 23.7k times · Source

bundler (2.0.1, default: 1.17.2)

How could I change the default to 2.0.1

Answer

Steve K picture Steve K · Aug 12, 2019

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