Heroku 命令在 mac 上抛出此错误:!error getting commands pid 29989 SIGSEGV (signal 11)

Heroku commands throwing this error on mac: !error getting commands pid 29989 SIGSEGV (signal 11)

这只是突然发生的事情。这发生在其他人身上吗?我 运行 heroku create app 遇到了这个错误 ! error getting commands pid 29989 SIGSEGV (signal 11)。此错误完全不提供任何信息。我一直在使用 heroku,但无法弄清楚为什么会出现此错误。我 运行 which heroku 它显示了 /usr/local/heroku/bin/heroku 中的 heroku 文件。基本上,我必须卸载 heroku 并更新 node.js 才能让它再次工作。我为使 heroku 命令再次工作而采取的步骤。

尽管命令无法正常工作,但我开始收到 /usr/local/bin/heroku not found 的新错误。看来我必须再进行一次删除才能使命令再次运行 gem uninstall heroku --all,然后神奇地一切又开始运行了。

根据我收集到的信息,我的旧 heroku 路径是 /usr/local/heroku/bin/heroku,新的 heroku 路径是 /usr/local/bin/heroku。也许 heroku 进行了更新,无法再找到我的旧路径。最佳的揣测。

让 heroku 再次工作确实需要经历很多,所以我想我应该与其他遇到困难的人分享这个。希望如果这种情况再次发生,可能会有更好更简单的解决方案。有的话请回复。

我使用此参考来帮助我完成 mac https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-heroku-cli

的完全卸载

参加这个派对有点晚了,但请回答以防其他人遇到同样的错误。此错误是由 运行 过时的 Heroku CLI(以前称为 Toolbelt)发行版引起的。卸载当前版本并从此处重新安装适当的发行版:https://devcenter.heroku.com/articles/heroku-command-line 即可。