How to do after installation brew fail

Reprinted: http://www.zhihu.com/question/35928898/answer/66926256

The following actions will result in deleting other information, please use caution

Installation fails, execute the following script to uninstall,

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

Do the following:

sudo rm -rf /usr/local/.git rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew rm -rf ~/Library/Caches/Homebrew

After the successful execution again, download a script:

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

download successful

 



Author: a fat
link: https: //www.jianshu.com/p/a2b8a980d0c8
Source: Jane book
Jane book copyright reserved by the authors, are reproduced in any form, please contact the author to obtain authorization and indicate the source.

Guess you like

Origin www.cnblogs.com/yangshixiong/p/11276979.html