Ruby on rails 无法登录heroku

Ruby on rails 无法登录heroku,ruby-on-rails,json,ruby,heroku,Ruby On Rails,Json,Ruby,Heroku,我试图登录heroku来推送我的应用程序,直到昨天它还在工作,但现在它给了我与json版本相关的错误 这是在命令heroku登录后创建的日志 This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2275:in `check_version_c

我试图登录heroku来推送我的应用程序,直到昨天它还在工作,但现在它给了我与json版本相关的错误

这是在命令heroku登录后创建的日志

This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com
c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2275:in `check_version_conflict': can't activate json-1.8.2, already activated json-1.8.3 (Gem::LoadError)
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1404:in `activate'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:89:in `block in require'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:88:in `each'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:88:in `require'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/heroku-3.99.1/lib/heroku/cli.rb:16:in `<top (required)>'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/heroku-3.99.1/bin/heroku:24:in `<top (required)>'
    from c:/RailsInstaller/Ruby2.3.0/bin/heroku:22:in `load'
    from c:/RailsInstaller/Ruby2.3.0/bin/heroku:22:in `<main>'
这是旧版Heroku CLI。请从安装新的CLIhttps://cli.heroku.com
c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2275:在“检查版本冲突”中:无法激活json-1.8.2,已激活json-1.8.3(Gem::LoadError)
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1404:in'activate'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core\u ext/kernel\u require.rb:89:in'block in require'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core\u ext/kernel\u require.rb:88:in'each'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core\u ext/kernel\u require.rb:88:in'require'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/heroku-3.99.1/lib/heroku/cli.rb:16:in`'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core\u ext/kernel\u require.rb:55:in'require'
来自c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/heroku-3.99.1/bin/heroku:24:in`'
从c:/RailsInstaller/Ruby2.3.0/bin/heroku:22:in'load'
从c:/RailsInstaller/Ruby2.3.0/bin/heroku:22:in`'
我的ruby版本是2.3.3和rails 5.0.3

多谢各位

`检查“版本冲突”:无法激活json-1.8.2,已激活 json-1.8.3(Gem::LoadError)

这是因为bundler试图安装
json-1.8.2
,而
json-1.8.3
已经安装。这是因为bundler将使用
Gemfile.lock
安装指定的gem版本


您应该执行
gem清理
,然后执行
gem更新json
。这将在
Gemfile.lock中将
json
更新为最新版本,并将解决此问题。

尝试运行
gem cleanup
,然后运行
gem update json
,谢谢@Pavan。。它提供了帮助!我会把它写下来作为答案,这样你就可以接受了:)当然,请回答。。