Heroku CLI 错误 - "cli.Spinner is not a function"

Heroku CLI error - "cli.Spinner is not a function"

当我尝试在 heroku 中加载 rails 控制台时收到以下消息:

→ heroku run rails console -a myapp ▸ cli.Spinner is not a function

检查 heroku 版本的输出:

→ heroku --version heroku-toolbelt/3.42.47 (x86_64-darwin10.8.0) ruby/1.9.3 heroku-cli/4.29.3-7996295 (amd64-darwin) go1.6 === Installed Plugins heroku-apps@1.7.3 heroku-cli-addons@0.3.0 heroku-fork@4.1.2 heroku-git@2.4.5 heroku-local@5.0.1 heroku-orgs@1.0.5 heroku-pg-extras heroku-pipelines@1.1.3 heroku-run@3.1.1 heroku-spaces@2.1.2 heroku-status@2.1.2

它过去对我有用,但现在我收到了这个错误。我已经使用 Heroku 提供的软件包和 brew install heroku 重新安装了 Heroku CLI。我可以将 CLI 用于 heroku logs -a myapp 的日志。关于可能是什么问题的任何想法?

您可以通过删除 ~/.heroku 目录和 运行 heroku 更新来解决此问题。如果您手动安装了插件,则必须手动重新安装它们。

此解决方案实际上适用于 linux。我旁边的一个朋友遇到了这个问题,我们只是再次删除了 ~/.heroku 和 运行 heroku,因为所有文件都被删除了,只是安装了所有更新。