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)/*

@Sameto
Copy link

Sameto commented Jul 26, 2022

This just save my bacon... Thanks a lot...

@isobe-h
Copy link

isobe-h commented Aug 1, 2022

thank you!

@gustavolsilvano
Copy link

gustavolsilvano commented Aug 10, 2022

It worked! Thank you!

@EagleFace5000
Copy link

EagleFace5000 commented Aug 11, 2022

Youre a genius my friend, thank you!

@carlosmmairena
Copy link

carlosmmairena commented Aug 12, 2022

Thank you!

@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!

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