mac 使用 homebrew

2022-03-07 15:27:53 浏览数 (2)

使用 brew update 指令

报错

Error: The following directories are not writable by your user: /usr/local/sbin /usr/local/share/man/man5 /usr/local/share/man/man7

解决办法:

代码语言:javascript复制
sudo chown -R $(whoami) /usr/local/*

重新调用即可:

代码语言:javascript复制
brew update

0 人点赞