Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active September 5, 2023 03:02
Star You must be signed in to star a gist
Embed
What would you like to do?
Homebrew: Permissions Denied Issue Fix (OS X / macOS)
@xyliusun
Copy link

thank you!

@lutabordaMeli
Copy link

thank you !!! what exactly did I just do ??? 🤔🤔🤔 you saved my lifeee

@dulfrey
Copy link

dulfrey commented Jun 29, 2022

thank you 😁

@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

It worked! Thank you!

@EagleFace5000
Copy link

Youre a genius my friend, thank you!

@carlosmmairena
Copy link

Thank you!

@yezhengli-Mr9
Copy link

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

Thank you ser!

@nnq1
Copy link

nnq1 commented Nov 10, 2022

great, you save my life

@ThorstenClaus
Copy link

In my case I had to setup a new local user on my machine and to remove the old one.
Then the folder ( defined by brew --prefix ) looses its owner.
With this the owner is set to the new local user and - it works!

@hyprcodr
Copy link

In my case, had this problem as I created a new user for development and installed brew in my original Mac OS Monterey user account. The mentioned solution solved my problem. Thanks !

@Emiya0306
Copy link

Nice~ Greate job!

@medwant
Copy link

medwant commented Jun 13, 2023

Thanks! Worked for me (macOS Ventura 13.3.1)

@ignoracenfly
Copy link

ignoracenfly commented Jun 13, 2023 via email

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