Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku error in Gitbash Windows 10

I cannot get Heroku to work in Gitbash on windows 10.

Gitbash version = 1.9.4.msysgit.2

Error Messages:

$ heroku version

/c/Program Files (x86)/heroku/bin/../client/bin/heroku.cmd: 

line 1: @echo: command not found
/c/Program Files (x86)/heroku/bin/../client/bin/heroku.cmd: 

line 2: setlocal: command not found
/c/Program Files (x86)/heroku/bin/../client/bin/heroku.cmd: 

line 4: syntax error near unexpected token `('
/c/Program Files (x86)/heroku/bin/../client/bin/heroku.cmd: 

line 4: `if not "%HEROKU_REDIRECTED%"=="1" if exist "%LOCALAPPDATA%\heroku\client\bin\heroku.cmd" ('

Any help is much appreciated!

Thank you,

Boba Fett

My Windows Environment Variables

The Error Messages in Gitbash

like image 336
Bobafett2016 Avatar asked Sep 03 '26 08:09

Bobafett2016


1 Answers

I was receiving the same error after I corrected the Path variable. What worked for me was installing a standalone version via bash. Uninstall the version of heroku that you have and then, in your shell, run the command curl https://cli-assets.heroku.com/install.sh | sh

like image 122
MisterCal Avatar answered Sep 04 '26 20:09

MisterCal