Heroku not recognized as an internal or external command (Windows) Heroku not recognized as an internal or external command (Windows) ruby-on-rails ruby-on-rails

Heroku not recognized as an internal or external command (Windows)


You're probably using an old version or the deprecated package 'heroku-cli'. The new one is just called 'heroku'Uninstall that by

npm uninstall -g heroku-cli

Then install the new package

npm i -g heroku

And now all your works will go perfectly.Just try heroku login and any other heroku command.

Credit: https://github.com/heroku/cli/issues/855#issuecomment-394758388


You can follow the Getting Started on Heroku with Python .

My Heroku.exe PATH is in C:\Program Files\Heroku\bin .

Make sure your Heroku's Path is correct.

Or you can re-install the heroku.


1.Set the Path in environment variables.

2.I created a separate path: Variable name : Heroku, Variable Path as C:\Program Files\Heroku\bin. But it didn't work

3.so i added the same path in Path variable which is already created and it worked.

4.My Heroku.exe PATH is in C:\Program Files\Heroku\bin . Make sure your Heroku's Path is correct. Hope it helps.

enter image description here