gpt4 book ai didi

ruby-on-rails - 警告 : the running version of Bundler is older than the version that created the lockfile error

转载 作者:行者123 更新时间:2023-12-04 11:06:40 28 4
gpt4 key购买 nike

在开发/测试时,我的控制台中不断出现此错误

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:2.1.4 ,不用担心ruby自带的老版本,应该不会用的。

关于ruby-on-rails - 警告 : the running version of Bundler is older than the version that created the lockfile error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60631953/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com