为什么我在执行 Heroku CLI 命令时会收到这些错误?

Why I am getting these errors when I execute Heroku CLI commands?

我在执行 Heroku 的任何命令时遇到这种错误,例如 heroku -vheroku login

'crumb' is not recognized as an internal or external command, operable program or batch file.

'ruby.exe' is not recognized as an internal or external command, operable program or batch file.

您的一个错误抱怨 Ruby 不可用。根据该消息,我怀疑您有 legacy Ruby-based CLI installed. It hasn't been supported for a very long time.

删除它然后安装the current CLI,这是用Node.js构建的。