2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

herokuコマンドで「error getting commands pid」が発生する場合の対処

Posted at

herokuコマンドで「error getting commands pid」が発生する場合の対処

環境

  • macOS High Sierra 10.13.2
  • Homebrew 1.4.1
  • heroku 6.14.43

はじめに

久々にherokuコマンドを実行したら、以下のエラーが発生しました。

$ heroku
!    error getting commands pid 18162 SIGSEGV (signal 11)

herokuを最新にしてみましたが、解決せず。

解決策

結論から言うと、herokuコマンドのPATHを設定すると解決しました。

herokuのダウンロードページを見ると

First, run which heroku to see what binary heroku is pointing to. If it is not /usr/local/bin/heroku, you need to either delete the binary it is pointing to, or make /usr/local/bin/ higher up in your PATH environment variable by modifying your ~/.bashrc file or equivalent.

とのことなので、herokuのPATHを見てみると

$ which heroku
/usr/local/heroku/bin/heroku

/usr/local/bin/heroku でないので、
上記のPATHを設定(自分は ~/.zshrc)を変更、再読込、コマンドを叩いてみると

$ heroku
Loading... ⣾
 ▸    Add apps to this dashboard by favoriting them with heroku apps:favorites:add
See all add-ons with heroku addons
See all apps with heroku apps --all

See other CLI commands with heroku help

解決です。

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?