When I run brew install {package}
, I get the following:
ln: /usr/local/bin/{package}: Permission denied
But if I try to use sudo brew install {package}
, I get the following:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
How do I get homebrew working again?