首次在mac上執行brew install *** 安裝應用,返回錯誤-bash: brew: command not found。
原因:mac系統未預製brew工具,此時需要先安裝brew工具,安裝步驟如下:
打開mac終端,執行以下命令即可執行:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
注意:執行過程中需輸入mac登陸密碼,同時安裝過程中會提示安裝xcode,此時需保證能夠正常鏈接到appstore,否則將會安裝失敗。