heroku cli commands not responding on windows 10

2019-07-05 02:17发布

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

enter image description here

标签: heroku-cli
2条回答
太酷不给撩
2楼-- · 2019-07-05 02:23

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

查看更多
女痞
3楼-- · 2019-07-05 02:30

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

查看更多
登录 后发表回答