Reputation: 51
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
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