Heroku login and logout does not work?

Viewed 15515

My account on heroku is suspended, and I am trying delete it on "cmd or git bash"; however, in my program, I cannot logout from that account.

This is the error I receive:

$ heroku logout
C:/Users/Romantiku/.heroku/client/lib/heroku/cli.rb:30:in `rescue in start': und
efined method `styled_error' for Heroku::CLI:Class (NoMethodError)
        from C:/Users/Romantiku/.heroku/client/lib/heroku/cli.rb:16:in `start'
        from c:/Program Files (x86)/Heroku/bin/heroku:25:in `<main>'
4 Answers

Hit the command "Heroku Logout" from you cli terminal.

If the error persists clear your browser cache. So that you can login again. Happy coding.

You can just use heroku login -i to login with your email and password from the cli instead.

In my case I only need to uninstall heroku cli and install it,but it didn't fix it, I then ran the login command with sudo.

sudo npm uninstall -g heroku-cli
sudo npm i -g heroku
sudo heroku login 
Related