运行 brew update 之后,

提示:

You should probably change the ownership and permissions of /usr/local

back to your user account.

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

 

发现:

macOS 10.13 High Sierra 之后 /usr/local 路径不允许修改权限

解决方案:

Uninstall Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Then re-install it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

Recent Posts