How to change Bundler default version

↘锁芯ラ 提交于 2020-01-24 04:02:30

问题


bundler (2.0.1, default: 1.17.2)

How could I change the default to 2.0.1


回答1:


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




回答2:


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



回答3:


bundler config default 2.0.1

This should do it.



来源:https://stackoverflow.com/questions/54761120/how-to-change-bundler-default-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!