【问题标题】:Can not find jsonapi parser 0.1.1找不到 jsonapi 解析器 0.1.1
【发布时间】:2016-10-06 04:48:21
【问题描述】:

当我运行 rails server 时,出现“找不到 jsonapi-parser-0.1.1.beta2”错误。

~/ruby_on_rails/test/sampleapp$ rails s
Could not find jsonapi-parser-0.1.1.beta2 in any of the sources
Run `bundle install` to install missing gems.
~/ruby_on_rails/test/sampleapp$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Could not find jsonapi-0.1.1.beta4 in any of the sources

【问题讨论】:

    标签: ruby ruby-on-rails-5


    【解决方案1】:
    bundle update jsonapi
    

    应该修复它

    【讨论】:

      【解决方案2】:

      jsonapi beta4 不可用。只有 beta5、beta 1、beta2 可用。你可以找到这个here

      如果没有,则将此行添加到您的 gemfile 中,然后运行 ​​bundle install。

      gem 'jsonapi-parser', '~> 0.1.1.beta2' gem 'jsonapi', '~> 0.1.1.beta5'

      这可能是由于您的 rails 应用程序中没有包含需要 jsonparser 的方法。

      【讨论】:

        猜你喜欢
        • 2017-02-20
        • 1970-01-01
        • 1970-01-01
        • 2016-01-06
        • 2014-07-13
        • 1970-01-01
        • 2016-10-03
        • 2017-10-12
        • 1970-01-01
        相关资源
        最近更新 更多