简体   繁体   中英

brew tap caskroom/cask complains about git

When I run brew tap caskroom/cask I get conflicting error messages.

Warning: git 2.15.1 is already installed
Error: Git must be installed and in your PATH!

Previously I ran brew link --overwrite git when brew asked me too.

Git seems to be installed fine and it is indeed in my path:

$ git --version
git version 2.15.1
$ which git
/usr/local/bin/git
$ echo $PATH
/Users/selah/anaconda3/bin:/Applications/instantclient_12_1:/Users/selah/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

My ultimate goal is to run brew info osxfuse successfully. Currently I get the following errors:

Error: No available formula with the name "osxfuse" 
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
  brew tap caskroom/cask

Can anyone help me to make it past this brew tap error so that brew can view info for osxfuse?

我安装了开发人员工具,这解决了我的问题:

xcode-select --install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM