在终端中运行以下命令,将 Bundler 更新到最新版本:
gem install bundler
如果已经使用了 Bundler 2 或更高版本,并且仍然收到此错误消息,则可以尝试删除 Gemfile.lock 文件,并重新运行:
rm Gemfile.lock bundle install
上一篇:Bundler说我的Ruby版本错误,但是我所有的检查都显示它是正确的。
下一篇:Bundler为什么不使用系统gem?