brew cleanup: Error: Permission denied @ apply2files · Issue #45009 · Homebrew/homebrew-core · GitHub

PHOTO EMBED

Tue Nov 03 2020 19:05:36 GMT+0000 (Coordinated Universal Time)

Saved by @richard

sudo chown -R $(whoami):admin /usr/local/* \
&& sudo chmod -R g+rwx /usr/local/*
content_copyCOPY

Fixes homebrew permissions

https://github.com/Homebrew/homebrew-core/issues/45009