homebrew 不能update解决方法

2018-03-01 10:56:21来源:oschina作者:ZhakyMing人点击

分享

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.即可解决


PS:


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)/*


最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台