1-21111G15603N6.png

1.删除后重新下载

cd /usr/local/Homebrew/Library/Taps/homebrew rm -rf homebrew-core brew upgrade

2.如果还是失败

git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

3.查看brew

brew list 安装kotlin的命令行 brew update brew install kotlin