heroku cli commands not responding on windows 10

2019-07-05 01:58发布

问题:

I installed heroku cli on windows 10 via exe installer.

When i try to run heroku --version command or heroku login command, the command window does not respond. It does not give any error.

Then i uninstalled it and installed it using npm install -g heroku-cli but getting same result.

Node version - 8.7.0

回答1:

In Windows cmd prompt, do:

echo %USERPROFILE%

Go to your C:\Users\YOURNAME

Look for a file named:

_netrc

This file stores login credentials. Delete it.

Then check for an update:

heroku update

Then try to log in:

heroku login

I saw some people create an environment variable called HOME and add the path to YOURNAME so the environment knows to look for the _netrc file there.

Other trouble-shooting ideas if the above doesn't work for you can be found at Heroku CLI troubleshooting



回答2:

In windows , run %LOCALAPPDATA%\heroku, completely delete this folder. and check again on cmd by typing heroku --version. Hope this helps.



标签: heroku-cli