2017-06-11 101 views
0

我正在尝试登录到heroku推我的应用程序,直到昨天它工作,但现在它给了我有关json版本的错误。无法登录heroku

这是命令的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>' 

我的红宝石版本是2.3.3和5.0.3轨道

谢谢

+0

尝试运行'gem cleanup'并紧接着'gem update json' – Pavan

+1

谢谢@ Pavan..it工作 – Mannish

+0

很高兴帮助!将它写为答案,以便您可以接受它:) – Pavan

回答

0

`check_version_conflict ':可以' t激活json-1.8.2,已激活 json-1.8.3(Gem :: LoadError)

这是由于打包程序试图安装json-1.8.2时有json-1.8.3已经安装。这是因为打包商将使用Gemfile.lock来安装宝石的指定宝石版本

您应该做gem cleanup,然后是。这将更新json最新版本Gemfile.lock并且将解决问题。