0
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 1 year has passed since last update.

HerokuCLIインストール時のエラーを解決

Last updated at Posted at 2022-09-23

Heroku CLIをインストール

  • Herokuをコマンドで操作できるようにするツール

$ brew tap heroku/brew && brew install heroku

エラーが発生

terminal
You have 30 outdated formulae and 1 outdated cask installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

下記コマンド実行

$ brew upgrade
  • brew update・・・Homebrewだけをアップデートするためのコマンド(Homebrewにインストールされているパッケージは更新されない)
  • brew upgrade・・・Homebrewのアップデート&Homebrewにインストールされているパッケージに更新が必要なものがあれば、同時にパッケージの更新も実行
    • 後者は時間がかかる

ただ、まだエラーが出る

terminal
==> Installing heroku from heroku/brew
Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.4.

下記実行

$ softwareupdate --all --install --force
  • montereyのupdateが始まり、30分くらい時間を要した
terminal
(base) sample@SampleMBP ~ % softwareupdate --all --install --force
Software Update Tool

Finding available software
Downloading macOS Monterey 12.5.1

これでも上手くいかなかったため下記実行

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
  • 最初は残り147時間とかいう絶望的な時間を提示されるが、1時間くらいで終わる

HerokuCLIインストール

$ brew tap heroku/brew && brew install heroku

完了

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