美文网首页
fix brew update 报错

fix brew update 报错

作者: 无名氏_1 | 来源:发表于2016-05-03 15:13 被阅读69次

错误信息:

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>

stackoverflow

相关文章

网友评论

      本文标题:fix brew update 报错

      本文链接:https://www.haomeiwen.com/subject/syolrttx.html