I’m new to gitbash and I’ve been getting this error for a few weeks now since my first successful attempt at logging in to heroku here via gitbash
I tried reinstalling gitbash and even installing typescript but it didn’t work.
After a good night of sleep, I found the solution! I removed the heroku directory in home dir local. See middle of article : https://github.com/heroku/cli/issues/672