userFriendly
userFriendly

Reputation: 484

Heroku CLI install failing Mac OSX

Randomly my heroku toolbelt stopped working. I'm not sure why, but when I execute any heroku action, for example heroku -v this happens:

➜  Homebrew heroku -v
heroku-cli: Adding dependencies... 2.57 MB/2.57 MB
2016/04/26 12:13:42 running npm from /Users/cowan/.heroku: /Users/cowan/.heroku/node-5.10.1-darwin-amd64/node /Users/cowan/.heroku/npm-3.8.5/cli.js -v --loglevel=info
ERROR: expected npm  to equal v5.10.1

Note this particular example is after I used homebrew to uninstall and reinstall heroku.

Upvotes: 1

Views: 3414

Answers (2)

stevec
stevec

Reputation: 52268

Just wanted to add that there's a built-in update command:

heroku update 

(I was trying to update via homebrew until I realised I didn't need to and just ran heroku update instead).

I found it via heroku --help

Upvotes: 0

userFriendly
userFriendly

Reputation: 484

Solution in 2 steps:

  1. Fresh install from https://toolbelt.heroku.com/osx
  2. Restart bash/zsh

Upvotes: 1

Related Questions