Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku command not found

Tags:

heroku

After installing Heroku Toolbelt, in terminal on Mac when trying to run the following command:

heroku 

I get the error:

bash: heroku: command not found 

When I do:

gem environment 

I get:

- RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS:  - ruby  - universal-darwin-11 - GEM PATHS:  - /Library/Ruby/Gems/1.8  - /Users/Bart/.gem/ruby/1.8  - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 - GEM CONFIGURATION:  - :update_sources => true  - :verbose => true  - :benchmark => false  - :backtrace => false  - :bulk_threshold => 1000 - REMOTE SOURCES:  - http://rubygems.org/ 

I've tried adding several paths to $PATH, but nothing works...

like image 407
bart Avatar asked Oct 09 '12 08:10

bart


People also ask

How do I access my heroku command line?

Get Started with the Heroku CLIAfter you install the CLI, run the heroku login command. Enter any key to go to your web browser to complete login. The CLI then logs you in automatically. If you'd prefer to stay in the CLI to enter your credentials, run heroku login -i .

Why heroku login is not working?

Double check that there are no typos in your password as well. Reset your password and try logging in with the new password. Try using a different email address. Try using an email alias with a plus sign if you might have signed up using an alias such as [email protected] instead of just [email protected].

Why heroku login is not working in VS code?

The error basically means that windows could not verify the identity of the user that created the script and is blocking you from running it because it may be harmful (based on the fact that it could not verify the identity of the file creator).


1 Answers

Manually adding the symlink after installing Toolbelt fixed it for me.

sudo ln -s /usr/local/heroku/bin/heroku /usr/bin/heroku

like image 152
Garrett Johnson Avatar answered Nov 10 '22 07:11

Garrett Johnson