컴퓨터 기본 상식

[mac os/osx/brew]Error: Running Homebrew as root is extremely dangerous and no longer supported.As Homebrew does not drop privileges on installation you would be giving allbuild scripts full access to your system. 해결방법

개발자 고포고 2022. 3. 12. 15:09
반응형

macOS업데이트 한 후로 home brew 루트권한 시도 시 다음과 같은 오류 발생

해결 방법은 간단하다.

 

#bew 소유권을 모두 변경

$ sudo chown -R $(whoami) $(brew --prefix)/*

 

#root 권한으로 업데이트

$ sudo brew upgrade

 

이 후 사용이 가능하다.

반응형