系統版本
macOS 10.14
情景
使用 brew install wget 指令
報錯
Error: The following directories are not writable by your user:
/usr/local/sbin
/usr/local/share/man/man5
/usr/local/share/man/man7
解決方案
使用如下指令擷取usr/local檔案夾的寫入權限
sudo chown -R $(whoami) /usr/local/*
重新調用 brew install wget ,即可正常完成安裝