Error Messages:
==> Installing dependencies for nginx: pcre
==> Installing nginx dependency: pcre
error: could not lock config file .git/config: Permission denied
Error: Command failed with exit 255: git
==> Installing dependencies for nginx: pcre
==> Installing nginx dependency: pcre
error: could not lock config file .git/config: Permission denied
Error: Command failed with exit 255: git
Solution:
sudo chown -R $(whoami):admin /usr/local/* && sudo chmod -R g+rwx /usr/local/*
Similar Posts:
- chown: /usr/local: Operation not permitted [Solved]
- How to Solve Error Permission denied when running brew cleanup
- MAC Wireshark Permission issues (you don’t have permission to capture on that device Mac)
- Mac installation NPM install – G @Vue/cli error [How to Solve]
- Nginx Install Error: ./configure: error: the HTTP rewrite module requires the PCRE library.
- The ‘brew link’ step did not complete successfully
- How to Solve PHP error “Zend”_ mm_ heap corrupted”
- How to Solve Error: Bad owner or permissions on .ssh/config
- Phpmyadmin Bottom Waring: “The configuration file now needs a secret passphrase (blowfish_secret). ”
- Mac: How to Solve global module install error