【MAC環境】使用brew install 命令時返回-bash: brew: command not found錯誤

首次在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,否則將會安裝失敗。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章