【问题标题】:Incompatible json gem versions in Rails when installing Stripe安装 Stripe 时 Rails 中不兼容的 json gem 版本
【发布时间】:2014-04-20 04:59:18
【问题描述】:

我正在尝试在我的 Rails 4.0 应用程序中安装 Stripe gem,但在运行 bundle install 时出现此错误:

Bundler could not find compatible versions for gem "json":
  In snapshot (Gemfile.lock):
    json (1.8.0)

  In Gemfile:
    stripe (>= 0) x86-mingw32 depends on
      json (~> 1.8.1) x86-mingw32

我将此条目添加到我的 gemfile:

# stripe
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'

我确认我的 gemfile.lock 有这个条目:

json (1.8.0)

如何升级它?我对这个配置文件不是很熟练。

【问题讨论】:

    标签: ruby-on-rails json stripe-payments


    【解决方案1】:

    解决了。

    你只需要运行:

     bundle update json
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-17
      • 1970-01-01
      • 1970-01-01
      • 2017-04-07
      • 1970-01-01
      • 2021-04-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多