iMac终端HomeBrew无法使用

系统运维

错误代码:

bash-3.2# brew update

Initialized empty Git repository in /usr/local/.git/

remote: Counting objects: 1163, done.

remote: Compressing objects: 100% (1067/1067), done.

remote: Total 1163 (delta 116), reused 391 (delta 55), pack-reused 0

Receiving objects: 100% (1163/1163), 1.23 MiB | 40.00 KiB/s, done.

Resolving deltas: 100% (116/116), done.

From https://github.com/Homebrew/brew

 * [new branch]      master     -> origin/master

HEAD is now at 42be54e Merge pull request #3667 from commitay/cask-doctor-sip

To restore the stashed changes to /usr/local run:

  'cd /usr/local && git stash pop'

Error: Running Homebrew as root is extremely dangerous and no longer supported.

As Homebrew does not drop privileges on installation you would be giving all

build scripts full access to your system.

解决方法就是给这个用户写权限,而不是sudo。

iMacdeMac:~ imac$ sudo chown -R imac /usr/local/

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn

赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » iMac终端HomeBrew无法使用

登录

找回密码

注册