2021-08-10 修复homebrew的[email protected]: wrong number of arguments (given 1, expected 0)错误

最近在用homebrew安装的时候出现了[email protected]: wrong number of arguments (given 1, expected 0)错误,在网上翻了一会儿终于找到了解法,贴出来供大家参考。

The exact commands to fix this:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --switch /Applications/Xcode-beta.app
... and then rerun the brew install:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

注意,第二个指定xcode的地方,我操作的时候是把-beta删除的,要不然找不到APP。

弄完后再安装就直接搞定了。祝好运!

你可能感兴趣的:(2021-08-10 修复homebrew的[email protected]: wrong number of arguments (given 1, expected 0)错误)