brew tap caskroom/cask 抱怨 git

Posted

技术标签:

【中文标题】brew tap caskroom/cask 抱怨 git【英文标题】:brew tap caskroom/cask complains about git 【发布时间】:2017-12-19 16:53:50 【问题描述】:

当我运行 brew tap caskroom/cask 时,我收到相互冲突的错误消息。

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

之前,当 brew 也问我时,我跑了 brew link --overwrite git

Git 似乎安装得很好,它确实在我的路径中:

$ 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

我的最终目标是成功运行brew info osxfuse。目前我收到以下错误:

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

谁能帮我解决这个 brew tap 错误,以便 brew 可以查看 osxfuse 的信息?

【问题讨论】:

【参考方案1】:

我安装了开发者工具,这更正了我的问题:

xcode-select --install

【讨论】:

以上是关于brew tap caskroom/cask 抱怨 git的主要内容,如果未能解决你的问题,请参考以下文章

尝试使用“brew tap aws/tap”命令在 ubuntu 上通过 brew 安装 aws-sam-cli,出现错误“致命:无法将 HEAD 解析为修订版”

解决安装brew卡在 “Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...”

Mac 解决安装brew卡在 “Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core‘...”

Mac 解决安装brew卡在 “Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core‘...”

brew update 很慢

mac 安装brew