Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Following this heroku tutorial to launch an app on heroku. But when I use the command heroku create, it says it's not recognized. I added C:\Program Files\Heroku to my PATH. How do I fix this?

like image 211
James Mitchell Avatar asked Feb 11 '17 00:02

James Mitchell


1 Answers

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

like image 200
Maniruzzaman Akash Avatar answered Oct 04 '22 11:10

Maniruzzaman Akash