系统升级到 macOS BigSur 11 之后,brew search 时一直报下面这个错:
Cask 'deeper' definition is invalid: invalid 'depends_on macos' value: unknown or unsupported macOS version: :mavericks
cd "$(brew --repo)/Library/Taps/homebrew"
wget https://ghproxy.com/https://github.com/Homebrew/homebrew-cask/archive/master.zip -O homebrew-cask.zip
unzip homebrew-cask.zip && rm -rf homebrew-cask homebrew-cask.zip
mv homebrew-cask-master homebrew-cask
cd "$(brew --repo)/Library/Taps/homebrew"
rm -rf homebrew-cask homebrew-cask-fonts
git clone https://mirrors.ustc.edu.cn/homebrew-cask.git
git clone https://mirrors.aliyun.com/homebrew/homebrew-cask-fonts.git
说明 https://ghproxy.com/ 是 Github 的代理加速