Mac上brew时出现Git must be installed and in your PATH!怎么办

有些问题

Git must be installed and in your PATH!

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"出现异常了

Warning: git-2.7.4 already installed

一种解决方案

打开终端,输入命令

xcode-select --install
brew update 

测试是否成功

打开终端,输入命令

brew install wget(或者其他测试一下)

相关问题解决

Github:https://github.com/Homebrew/legacy-homebrew/issues/50500
Take&Give:https://ted423.bitcron.com/post/document/wen-ti-chu-li/git-must-be-installed-and-in-your-path!


版权声明:本文为SoftpaseFar原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。