LoginSignup
0
1

More than 3 years have passed since last update.

Macでgitコマンドが使えなかった場合の解決法

Posted at

Macのターミナルで"git --version"と打ったら、以下のエラーが出てしまった。

"xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun"

92E3FAFF-F256-4073-BD53-DEA440BA4412_4_5005_c.jpeg

調べて見ると、"xcode-select --install"とターミナルに入力して、Command Line Tool Pacageをインストールすることで、解決できるらしい。

さっそくやってみた。
インストール完了後に、試しに"git"と入力したら、ちゃんとusageを表示してくれた。

26596DD6-88A2-46A5-83FF-4834389F6E9A_4_5005_c.jpeg

これでひとまず、問題は解決した。

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