mac brew

mac下brew install 報錯



Password:

Error: Cowardly refusing to `sudo brew install'

You can use brew with sudo, but only if the brew executable is owned by root.

However, this is both not recommended and completely unsupported so do so at

your own risk.



原因是這個brew的權限不正確


修改一下這個brew的權限chown root:wheel /usr/local/bin/brew

OK

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