Unexpectedly CLI Heroku

Suddenly, from one command to the next, Heroic CLI stopped working. No matter what I type on the command line, I get the same error. See below.

$heroku help
 ▸    commands is not a heroku command.
 ▸    Perhaps you meant domains
 ▸    Run heroku help for a list of available commands.
 !    error getting commands pid 24643 exit 127

      

What's happening?

+3


source to share


3 answers


this issue happened to me after the last update of hero CLI, heroku CLI checks for updates after executing any command related to launch, and when launching update, there is a problem because not running as root.

to fix this you need to reinstall the hero CLI

sudo apt-get remove heroku
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -fL https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku

      



and you probably need to add this path

PATH=$PATH:~/usr/bin
export PATH

      

0


source


It happened to me. I fixed it by uninstalling the heroku app the same way I installed it. I installed the gem, so I removed that.

gem uninstall heroku

Then I used homebrew to reinstall it.



brew install heroku

and it worked.

0


source


Something similar (albeit with a different error message) happened to me after updating my OS. On Mac, be sure to install CommandLineTools (with Xcode) after major OS update!

0


source







All Articles