xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Disk Inventory XとOnyxを使ってmacの不要ファイルを削除した際にXCodeもアンインストールしたが、その影響でbrew install実行時に下記のエラーが出るようになった。
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
XCode cliはインストール済みだったので下記を実行することでエラーが消えた。
sudo xcode-select -switch /Library/Developer/CommandLineTools