Mac OS升级BigSur后Homebrew异常

1
2
3
Error: An exception occurred within a child process:
  NoMethodError: undefined method `path' for nil:NilClass
Did you mean?  paths
1
2
3
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
brew update-reset

参考文章:https://discourse.brew.sh/t/homebrew-installation-fail/7439