首页 > mac 系统 下 brew update error

mac 系统 下 brew update error


# julaud at julauddeMacBook-Pro.local in ~/www/react/react-native/react-native on git:master o [10:22:11]
$ brew update
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

当前用户是 julaud

记得以前更新的时候 不需要 admin 吧
也不需要 加 sudo chown -R $(whoami):admin /usr/local

该如何有效解决呢 求大神指导一下 (^__^) 嘻嘻……

【热门文章】
【热门文章】