1
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 login で Error: EISDIR: illegal operation on a directory, read というエラーが出たら

Posted at

📝 概要

  • Heroku CLIをインストールしてログインしようとしたら、 Error: EISDIR: illegal operation on a directory, read というエラーが出た
  • 検索してもあまり記事が出てこなかったので、備忘録として書いておきます

💻 環境

  • macOS Catalina

🤔 問題

1. Heroku CLIをインストール

公式ドキュメント通りに下記のコマンドを実行する。

% brew tap heroku/brew && brew install heroku
% heroku --version
heroku/7.42.3 darwin-x64 node-v12.16.2

2. heroku loginを試す

Heroku CLIインストール後に heroku login を試すと、下記のようにエラーが出た。

% heroku login --interactive
(node:22431) [EISDIR] Error Plugin: heroku: EISDIR: illegal operation on a directory, read
Error occurred during reading netrc file: /Users/uematsu/.netrc
module: @oclif/config@1.13.2
task: runHook prerun
plugin: heroku
root: /usr/local/Cellar/heroku/7.42.3/libexec
See more details with DEBUG=*
Error: EISDIR: illegal operation on a directory, read

% heroku login --interactive でも同じ結果になった)

🌟 解決方法

公式ドキュメントのLogin issuesに書いてある通り、下記のコマンドを実行する。

% mv ~/.netrc ~/.netrc.backup

これで正常にログインできるようになった🎉

1
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
1
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?