[开发/测试时,我一直在控制台中收到此错误
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
这完全不是在阻止我,而是在烦我。我知道最简单的解决方案就是将我的Gemfile.lock更新为此。
BUNDLED WITH
2.1.2
但是我想永久解决。我尝试
gem uninstall bundler
然后
gem install bundler -v 2.1.4
让我一直给这个错误
Gem bundler-2.1.2 cannot be uninstalled because it is a default gem
并且当我尝试先安装2.1.4然后删除bundler 2.1.2控制台时,会显示以下输出。
Gem bundler-2.1.2 cannot be uninstalled because it is a default gem
Successfully uninstalled bundler-2.1.4
这个问题有解决方案吗?在此先感谢
您应该将2.1.4
作为默认gem安装,以便能够卸载2.1.2
:
gem install bundler -v 2.1.4 --default
然后:
gem uninstall bundler -v 2.1.2