mac 命令行 安装 需要管理员 权限“Please try running this command again as root/Administrator”的解决办法

我们在进行mac 命令行安装软件的时候,有的时候会遇见这样的问题:Please try running this command again as root/Administrator.

如图:



解决办法是在终端输入:

sudo chown -R $USER /usr/local 

然后输入安装的密码,在执行相关安装命令就行了



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