“ Git Push Heroku Master”; -无法登录到Heroku-Cloud9 IDE [英] "Git Push Heroku Master" - Cannot login to heroku - Cloud9 IDE

查看:88
本文介绍了“ Git Push Heroku Master”; -无法登录到Heroku-Cloud9 IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

heroku遇到麻烦。这种问题是无处不在的。我一直在进行数月的更新,没有出现错误,突然间我遇到了问题。

Having troubles with heroku. This problem kind of came out of nowhere. I've been pushing updates for months without error and all of a sudden I'm having problems.

当我执行Git Push Heroku Master(在C9上)时,系统提示您登录:

When I do Git Push Heroku Master (on C9) I get prompted to login:

> remote: !       WARNING: remote: !       Do not authenticate with
> username and password using git. remote: !       Run `heroku login` to
> update your credentials, then retry the git command.

但是,如果我运行 heroku login,则会出现此错误:

However if I run "heroku login" I get this error:

undefined method `[]' for nil:NilClass
/usr/local/heroku/lib/heroku/jsplugin.rb:59:in `commands'
/usr/local/heroku/lib/heroku/jsplugin.rb:208:in `find_command'
/usr/local/heroku/lib/heroku/jsplugin.rb:12:in `try_takeover'
/usr/local/heroku/lib/heroku/cli.rb:25:in `start'
/usr/bin/heroku:25:in `<main>'
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       undefined method `[]' for nil:NilClass (NoMethodError)
    Command:     heroku login
    Version:     heroku-toolbelt/3.42.20 (x86_64-linux) ruby/2.2.1


    More information in /home/ubuntu/.heroku/error.log

我已经看到了尝试以下操作的建议,但是当我尝试时,上面出现了相同的错误:

I've seen the advice to try the following but when I try I get the same error above:

username : blank

password : heroku auth token


推荐答案

看看&

在C9控制台中运行: rm -rf〜/ .local / share / heroku

In the C9 console run: rm -rf ~/.local/share/heroku

然后运行 heroku登录并重新登录。很好!

Then run heroku login and log back in. Good to go!

来自Heroku文档:

From Heroku docs:


如果您仍然遇到问题并且CLI是最新的,或者
由于其他原因更新失败,则可以通过删除
来重置CLI。它的用户目录。这些目录将被自动替换,并且
您将不会注销,但是您将丢失所有已安装的插件

If you continue to have problems and the CLI is up to date, or if updating fails for other reasons, you can reset the CLI by deleting its user directories. These directories are replaced automatically and you will not be logged out, but you will lose any installed plugins

这篇关于“ Git Push Heroku Master”; -无法登录到Heroku-Cloud9 IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆