Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active June 14, 2024 17:01
Show Gist options
  • Save irazasyed/7732946 to your computer and use it in GitHub Desktop.
Save irazasyed/7732946 to your computer and use it in GitHub Desktop.
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

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

@ulises-castro
Copy link

Hi, for my case the error was Error: Permission denied @ dir_s_mkdir - /private/tmp/homebrew....

And the solution was

sudo chown $(whoami):admin /private/tmp/

I just updated to MacOs Sonoma 14.5, I do not know if that was the case ...

@keith-sada
Copy link

Hi, for my case the error was Error: Permission denied @ dir_s_mkdir - /private/tmp/homebrew....

And the solution was

sudo chown $(whoami):admin /private/tmp/

I just updated to MacOs Sonoma 14.5, I do not know if that was the case ...

This is the [fix] I am looking for.
-Unknown Stormtrooper

Also on Sonoma 14.5, but I think the issue goes back to earlier version of Sonoma for me. I've just been rebooting to clear it, but I like this better.

@ignoracenfly
Copy link

ignoracenfly commented Jun 14, 2024 via email

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