安裝?
官網地址https://brew.sh/index_zh-cn.html
1.打開終端執行:ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"
2.按照提示進行操作,中間可能會出錯,參考文檔為:http://www.cnblogs.com/xiaohaillong/p/6120913.html
3.brew -v?查看版本信息
4.brew doctor?這是一條很有用的命令,它會告訴你,怎么解決brew的問題,里面可能會有很多Warning,一步步按它的解決提示操作去解決。
問題
安裝過程中,遇到的錯誤記錄 Warning: /usr/local/bin is not in your PATH.導致brew命令使用不了,參考下圖
終端輸入命令 export PATH=/usr/local/bin:$PATH,即可解決!參考文章:https://blog.csdn.net/li350887156/article/details/56277528