錯誤代碼:
創(chuàng)新互聯(lián)建站網(wǎng)站建設(shè)服務(wù)商,為中小企業(yè)提供做網(wǎng)站、成都網(wǎng)站制作服務(wù),網(wǎng)站設(shè)計,網(wǎng)站運營等一站式綜合服務(wù)型公司,專業(yè)打造企業(yè)形象網(wǎng)站,讓您在眾多競爭對手中脫穎而出創(chuàng)新互聯(lián)建站。
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.
解決方法就是給這個用戶寫權(quán)限,而不是sudo。
iMacdeMac:~ imac$ sudo chown -R imac /usr/local/