当我开发/测试时,我总是在我的控制台中得到这个错误
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,然后删除绑定程序时,2.1.2控制台就会给出这个输出。
Gem bundler-2.1.2 cannot be uninstalled because it is a default gem
Successfully uninstalled bundler-2.1.4
这个问题有什么解决办法吗?提前感谢
发布于 2020-03-11 10:39:55
只要运行gem install bundler:2.1.4
,不要担心与ruby一起的旧版本,它不应该被使用。
发布于 2020-09-06 07:35:59
,gem更新--系统帮我解决了这个问题。
发布于 2021-04-06 16:21:05
我修好了!如果您正在使用rvm,那么您必须转向在特定项目中使用的ruby版本(例如。‘'rvm使用2.7.0'),然后运行’宝石更新-系统‘
https://stackoverflow.com/questions/60631953
复制相似问题