mac 更新软件brew update 报错 Error: /usr/local must be writable!

解决方法,执行如下命令

sudo chown -R $(whoami) /usr/local

brew doctor 医生检测

运行这个命令,检测当前环境,并对检测到的问题给出相应的解决方法

brew doctor

其他错误

Homebrew’s sbin was not found in your PATH but you have installed

formulae that put executables in /usr/local/sbin.

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile

报上面错误,根据他的提示进行操作:

echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
. ~/.bash_profile
Warning: Broken symlinks were found. Remove them with `brew prune`:
    /usr/local/bin/bee
    /usr/local/sbin/bee

 Tags : mac brew

Donate:| 文章有帮助,可以 请我喝杯咖啡

Powered by foxwho.com 浙ICP备19037334号-1