爆出下面的错误
mac 运行 brew update
Error: /usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
sudo chown -R $(whoami) /usr/local
解决命令
sudo chown -R $(whoami):admin /usr/local
这样就可以update了
udpate成功之后 homebrew 会有如下提示,我们可以通过下面的命令关闭授权
Homebrew no longer needs to have ownership of /usr/local. If you wish you can
return /usr/local to its default ownership with:
sudo chown root:wheel /usr/local
网友评论