【问题标题】:Upgrade ruby to 2.4.0将红宝石升级到 2.4.0
【发布时间】:2017-03-16 16:27:05
【问题描述】:

我已在我的 Rails 应用程序中将 Ruby 升级到 2.4.0 版,但是当我尝试 bundle install 时,我遇到以下错误:

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before  

【问题讨论】:

  • 你能显示完整的日志信息吗?
  • 你试过$ bundle update json然后再把它捆绑起来吗?
  • 是的,但没有修复
  • 你是如何更新 Ruby 的?您是否确认您确实运行了新版本?你是如何安装bundler的? json安装失败后是否按照错误提示进行操作?

标签: ruby-on-rails ruby bundler ruby-upgrade


【解决方案1】:

json(1.8.3) 与 ruby​​ 2.4.0 不兼容。尝试使用更新的版本。

$ bundle update json

【讨论】:

  • 感谢侯赛因:D
猜你喜欢
  • 2012-11-17
  • 1970-01-01
  • 1970-01-01
  • 2019-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-09-09
相关资源
最近更新 更多