下記サイトの通りターミナルにてコードを実行
https://brew.sh/index_ja
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
出てきたエラーコード
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools' Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
出現後brewを実行してもcommand not foundと出る
やったこと
x-codeのインストールがされていなかったのでAppStoreからインストール。その後ターミナルを再起動するも
同じような現象でした。
ちなみに初めてMACにHomebrewを入れる際に出現しました。
回答1件
あなたの回答
tips
プレビュー