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 to share