Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

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

@yezhengli-Mr9
Copy link

yezhengli-Mr9 commented Aug 21, 2022

my solution with link: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

and command: sudo chown -R "$(whoami)":admin /usr/local

it ":admin" for sum in user

MacOS BigSur 11.4
Thanks~

@philipbankier
Copy link

philipbankier commented Aug 24, 2022

Thank you ser!

@nnq1
Copy link

nnq1 commented Nov 10, 2022

great, you save my life

@ignoracenfly
Copy link

ignoracenfly commented Nov 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment