homebrew 不能update解决方法

来源:互联网 时间:2018-03-01

mac已经在低版本安装homebrew后升级到OSX 10.13 High Sierra后无法brew update问题解决方案

The problem kept occurring... after digging deeper I found that only uninstalling Homebrew and then re-installing it solved this issue.

Uninstall Homebrew:

/usr/bin/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)"

再次brew update则提示

Already up-to-date.即可解决


1、Unfortunately you can no longer chown/usr/localin High Sierra. A workaround is tosudo mkdir /usr/local/includeand/usr/local/Frameworksif they don't exist, and

sudo chown -R $(whoami) $(brew --prefix)/*