Homebrew can't update solution

Mac has been upgraded to OSX 10.13 High Sierra after installing homebrew in a low version and cannot brew update problem solution

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 again prompts

Already up-to-date. can be solved

PS:

1、Unfortunately you can no longer chown /usr/local in High Sierra. A workaround is to sudo mkdir /usr/local/include and /usr/local/Frameworks if they don't exist, and

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325130975&siteId=291194637