2

在点击 caskroom/cask 后尝试安装 brew-cask,

brew tap caskroom/cask
brew install brew-cask

但是出现错误,

$ brew install brew-cask
  Updating Homebrew...
  Error: No available formula with the name "brew-cask" 
  ==> Searching for a previously deleted formula (in the last month)...
  Error: No previously deleted formula found. 
  ==> Searching for similarly named formulae...
  This similarly named formula was found:
  brew-cask-completion ✔
  To install it, run:
  brew install brew-cask-completion ✔
  ==> Searching taps...
  ==> Searching taps on GitHub...
  Error: No formulae found in taps.

尝试了 brew cleanup、未开发的 caskroom/cask 和重新安装 brew-cask 但没有运气。

我使用 brew install brew-cask-completion 安装了 brew-cask-completion。并在某处阅读 brew-cask 已弃用。那么解决办法是什么。我忽略了它并安装了java open sdk。我的问题是,如果我不安装它,将来会不会有问题?

提前致谢!

4

2 回答 2

1

它是由于核心安装损坏而发生的,实际上你会在安装任何包时给出这个错误,你应该修复:

rm -fr $(brew --repo homebrew/core)

然后安装任何你想要的,对我来说:

brew intall deno
于 2021-11-07T21:37:12.170 回答
1

尝试按以下顺序使用以下命令重新安装它:

brew uninstall brew-cask
brew untap caskroom/cask
brew tap caskroom/cask
brew install brew-cask
于 2019-08-07T15:39:01.317 回答