Mac系統下安裝Homebrew後沒法使用brew命令,-bash: brew: command not found

使用以下命令:vim

sudo vim .bash_profile

而後輸入如下代碼:bash

export PATH=/usr/local/bin:$PATH

再使用如下命令使配置生效:code

source .bash_profile

這樣就可使用brew命令了blog

相關文章
相關標籤/搜索