Heroku CLI突然坏了 [英] Heroku CLI suddenly broken

查看:89
本文介绍了Heroku CLI突然坏了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,从一个命令到另一个命令,Heroic CLI停止工作。无论我在命令行中键入什么内容,都会出现相同的错误。见下文。

Suddenly, from one command to the next, the Heroic CLI stopped working. No matter what I type into 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

到底发生了什么?

推荐答案

这个问题只是在最近一次更新heroku CLI之后发生了,
heroku CLI在执行与和相关的任何命令后检查是否有更新运行更新时出现问题,因为无法使用root权限。

this problem just happened with me after the last update of heroku CLI, heroku CLI check if there is updates after execute any command related with and when run updates the problem occurs because is not working with root permissions.

要解决此问题,您需要重新安装heroku CLI

to fix this you need to reinstall heroku 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

这篇关于Heroku CLI突然坏了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆