前言
在用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