运行bundle install时出错:bundle被锁定到解析器

时间:2018-03-26 19:56:00

标签: bundle bundler

我刚刚克隆了一个新的仓库,并尝试运行bundle install,但收到了错误

Fetching gem metadata from https://abcderepos.net/api/gems/rubygems/...........
Your bundle is locked to parser (2.5.0.4), but that version could not be found in any of the sources listed in your Gemfile. If
you haven't changed sources, that means the author of parser (2.5.0.4) has removed it. You'll need to update your bundle to a
different version of parser (2.5.0.4) that hasn't been removed in order to install.

我知道为什么会收到此错误?

2 个答案:

答案 0 :(得分:6)

看起来解析器版本2.5.0.4是从rubygems中提取的。我今天也遇到了同样的问题。您需要将解析器版本更新为2.5.0.5或降级到2.5.0.3。

更新:他们有文档here来支持删除原因

答案 1 :(得分:5)

解决方案是bundle update parser --patch。 (手动更改Gemfile.lock。)