Mac OS升级BigSur后Homebrew异常

shell

Error: An exception occurred within a child process:
  NoMethodError: undefined method `path' for nil:NilClass
Did you mean?  paths

shell

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
brew update-reset

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