Heroku 运行 显示更新,是否需要更新?如果是的话怎么办?

Heroku run shows update, is it necessary to update ? And if yes than how?

heroku run rails console

▸    heroku-cli: update available from 6.11.17 to 6.14.16-9ae58fc

▸    No app specified

如何更新我的 heroku-cli 版本?

您没有更新的义务。我也在用以前的版本,一切正常。

但是如果你想更新检查这个link:https://devcenter.heroku.com/articles/heroku-cli

它说要更新你的 heroku cli,你只需要这样做:

heroku update

但是有这个问题:

Not all methods of installation are updatable with heroku update. Apt users will have to use sudo apt-get update && sudo apt-get upgrade heroku. npm/yarn users will have to update with npm upgrade -g heroku-cli or yarn global upgrade heroku-cli

If updating does not update the CLI, try uninstalling with the uninstall instructions below

heroku update

对我不起作用。我不得不 运行:

sudo apt update && sudo apt install heroku

为了获得更新。

使用命令卸载 Heroku:

sudo apt-get remove Heroku

然后通过以下方式安装 Heroku:

sudo apt-get install heroku

现在检查 Heroku 版本:

heroku -v