使用 brew update 指令
Error: The following directories are not writable by your user: /usr/local/sbin /usr/local/share/man/man5 /usr/local/share/man/man7
解决办法:
sudo chown -R $(whoami) /usr/local/*
重新调用即可:
brew update