22
6

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 コマンドでnot a directory

Last updated at Posted at 2017-10-25

MacOSを EI CapitanからHigh Sierraにアップデートしたらherokuコマンドでエラーが出るようになってしまいました。

$  heroku config

 ▸    stat /Users/username/.local/share/heroku/client/bin/heroku: not a directory
 ▸    fork/exec /Users/username/.local/share/heroku/client/bin/heroku: not a directory
 ▸    stat /Users/username/.local/share/heroku/client/bin/heroku: not a directory
 ▸    fork/exec /Users/username/.local/share/heroku/client/bin/heroku: not a directory

調べて見たらどうやらCLIをuninstall & updateが必要みたいです。

解決策

$ rm -rf ~/.local/share/heroku/client 
$ heroku update

参考
https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-heroku-cli
https://github.com/heroku/cli/issues/427

22
6
3

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
22
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?