How to change Bundler default version

后端 未结 3 1752
礼貌的吻别
礼貌的吻别 2021-01-17 11:16

bundler (2.0.1, default: 1.17.2)

How could I change the default to 2.0.1

相关标签:
3条回答
  • 2021-01-17 11:55

    What helped me is to delete the current default manually from the folder lib\ruby\gems\2.6.0\specifications\default\
    and then install fresh bundler as usually
    gem install bundler
    or as default
    gem install --default bundler

    0 讨论(0)
  • 2021-01-17 12:02

    You need to remove .spec file to remove the gem.

    Steps:

    1. gem env – try to search in provided list under GEM PATHS, in specifications/default
    2. remove there bundler-VERSION.gemspec
    3. install bundler, if you don't have specific: gem install bundler:VERSION --default
    0 讨论(0)
  • 2021-01-17 12:04

    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
    
    0 讨论(0)
提交回复
热议问题