【问题标题】:Bundle: Missing Digest for Metadata.gzBundle: 缺少 Metadata.gz 的摘要
【发布时间】:2018-06-16 05:18:57
【问题描述】:

我在使用 bundler 安装当前 rspec 版本时遇到以下错误。

The gem rspec-core-3.7.1 can't be installed because the security policy 
didn't allow it, with the message: missing digest for metadata.gz

所以我尝试运行

bundle --trust-policy=NoSecurity

但仍然遇到同样的错误。

我做错了什么?

【问题讨论】:

    标签: ruby-on-rails ruby rspec rubygems bundler


    【解决方案1】:

    来自https://github.com/bundler/bundler/blob/master/lib/bundler/rubygems_integration.rb

    # TODO: This is for older versions of RubyGems... should we support the
    # X-Gemfile-Source header on these old versions?
    # Maybe the newer implementation will work on older RubyGems?
    # It seems difficult to keep this implementation and still send the header.
    

    我会尝试以下方法

    1. 更新Rubygem

      gem install rubygems-update
      update_rubygems
      gem update --system
      
    2. 更改您正在使用的 ruby​​ 版本。如果您使用的是rbenv,请关注this guide,否则对于rvm,您必须挖掘their website

    3. Update/reinstall bundler

    【讨论】:

      猜你喜欢
      • 2014-08-17
      • 2016-08-24
      • 2021-08-04
      • 1970-01-01
      • 1970-01-01
      • 2018-02-16
      • 2015-12-06
      • 2017-05-28
      • 1970-01-01
      相关资源
      最近更新 更多