bundler - 同步系统和应用程序之间的依赖关系

以下错误

You have already activated strscan 3.0.1, but your Gemfile requires strscan 3.0.3.  
Since strscan is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports strscan as a default gem. (Gem::LoadError)

bundle -v Bundler version 2.3.13 在哪里

关于在 Gemfile 中没有直接调用的依赖项。 Gemfile.lock 确实声明 strscan (3.0.3) strscan 由 net-imap (0.2.3) 调用

gem update --system
gem update bundler
touch tmp/restart.txt

不能解决问题。

如何解决这个版本问题?无论是通过显式版本控制还是删除依赖项

回答1

只需在您的 SSH 服务器上使用此命令

gem update strscan

检查当前 strscan 版本使用

gem list | grep strscan

回答2

几乎必须修改 gemfile.lock 以使用 3.0.0 代替! https://openbuildservice.org/2022/05/11/post-mortem/

相似文章

随机推荐

最新文章