Maviya Shaikh
Maviya Shaikh

Reputation: 51

heroku : The term 'heroku' is not recognized as the name of a cmdlet, function, script file, or operable program

I installed heroku. I set the the bin folder path to environment variables. I have been trying to run command: heroku -v in my Visual Studio Code text editor. But I get the following error:

heroku : The term 'heroku' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ heroku -v
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (heroku:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Upvotes: 5

Views: 7709

Answers (2)

Suraj Soni
Suraj Soni

Reputation: 31

Just restart vs code and it will work. :)

Upvotes: 2

Ankush Chauhan
Ankush Chauhan

Reputation: 1603

After correctly installing the Heroku CLI from the installer, the one more thing that needs to be done to run the Heroku commands in VS code terminal is to install the Heroku package from the npm. Use the following command for this:

npm install -g heroku

Now, to verify your CLI installation you can use the heroku -v or heroku --version command.

Upvotes: 9

Related Questions