错误信息:
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
原因:
错误信息很明显 提示没有对/usr/local 目录操作的权限
解决办法:
对/usr/local目录下的所有文件赋予权限 whoami 代表的是当前用户
<code>sudo chown -R $(whoami) /usr/local</code>
删除无效的引用
<code>brew prune</code>