Homebrewexit code > 0

Error: Permission denied @ dir_s_mkdir

$Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Analysis

Homebrew lacks the necessary permissions to create a directory in a system path.

Common Triggers

  • Permissions on /usr/local were changed or are incorrect after a macOS update.

Debug Checks

  • $Check ownership of the directory: ls -ld /usr/local/Frameworks.

Resolution

1
Change ownership to your user: sudo chown -R $(whoami) /usr/local/Frameworks.

Metadata

Tool
Homebrew
Severity
High
Tags
#brew#macos#permissions