錯(cuò)誤信息:
Error: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.
You should probably change the ownership and permissions of /usr/local
back to your user account.
sudo chown -R $(whoami):admin /usr/local
原因:
錯(cuò)誤信息很明顯 提示沒有對(duì)/usr/local 目錄操作的權(quán)限
解決辦法:
對(duì)/usr/local目錄下的所有文件賦予權(quán)限 whoami 代表的是當(dāng)前用戶
<code>sudo chown -R $(whoami) /usr/local</code>
刪除無效的引用
<code>brew prune</code>