Skip to content

Existing mac permission install failure #44

@amcheste

Description

@amcheste

macOS Version

Sequoia 15

Homebrew Version

Homebrew 5.1.2

Description

amcheste:mac-dev-setup $ ./setup.sh
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developer Environment Setup
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

▶ Preflight checks...
Admin account ✓
✗ Homebrew prefix '/usr/local' is not writable by this user.
Run: sudo chown -R $(whoami) /usr/local

Please fix the issues above and re-run setup.sh.
amcheste:mac-dev-setup $ sudo ./setup.sh
Password:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developer Environment Setup
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

▶ Preflight checks...
Admin account ✓
Homebrew writable ✓

▶ Checking Homebrew...
Homebrew already installed ✓

▶ Tapping amcheste/mac-dev-setup...

▶ Installing packages (this may take a few minutes)...
Using: /Users/amcheste/Repos/amcheste/mac-dev-setup/Brewfile
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
ERROR: brew bundle failed
amcheste:mac-dev-setup $ sudo ./setup.sh
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developer Environment Setup
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

▶ Preflight checks...
Admin account ✓
Homebrew writable ✓

▶ Checking Homebrew...
Homebrew already installed ✓

▶ Tapping amcheste/mac-dev-setup...

▶ Installing packages (this may take a few minutes)...
Using: /Users/amcheste/Repos/amcheste/mac-dev-setup/Brewfile
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
ERROR: brew bundle failed
amcheste:mac-dev-setup $ ./setup.sh
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developer Environment Setup
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

▶ Preflight checks...
Admin account ✓
✗ Homebrew prefix '/usr/local' is not writable by this user.
Run: sudo chown -R $(whoami) /usr/local

Please fix the issues above and re-run setup.sh.
amcheste:mac-dev-setup $ brew --version
Homebrew 5.1.2
Homebrew/homebrew-core (git revision f002b888bc5; last commit 2026-03-30)
amcheste:mac-dev-setup $

Steps to Reproduce

./setup.sh

Expected Behavior

enviornment successfully setup

Actual Behavior

error based on permissions

Relevant Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions