在我进行开发/测试时,我的控制台一直出现这个错误
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
有没有解决这个问题的方法?先谢谢了。
gem install bundler
命令吗?这个命令会安装最新版本的 Bundler。 - adesurireygem update --system
命令。 - Anne van Rossum