尝试通过brew安装Java11时出错

时间:2019-06-20 11:55:20

标签: homebrew java-11

我正在尝试在Mac上使用以下方式安装java11

brew cask install java11

我得到一个错误:

  Error: Cask java11 exists in multiple taps:
  homebrew/cask-versions/java11
  caskroom/versions/java11

您能帮忙解决此错误吗?

1 个答案:

答案 0 :(得分:0)

以下命令解决了木桶冲突的问题,然后安装java11

brew untap homebrew/cask-versions
brew untap caskroom/versions
brew tap homebrew/cask-versions
brew cask install java11