前言
在用Homebrew安装包时遇到以下错误
报权限错误
Error: The following directories are not writable by your user:/usr/local/share/man/man8
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man8
解决办法
收回权限后,即可正常下载,在终端输入
sudo chown -R `whoami`:admin /usr/local/bin
sudo chown -R `whoami`:admin /usr/local/share