Unable to use brew to install other software #151
-
Unable to use brew to install other software like azure CLI. The following directories are not writable by your user: Tried to re-install the brew, couldn't have sudo access, which I believe brew doesn't require. Need suggestions to get this working. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Who installed Homebrew on your machine? If someone else did the install, all the relevant directories under If that were the case, then the simplest solution is for them to run:
And yes, sudo access isn't required for normal Homebrew operations, but the Homebrew install script does require it to set up the |
Beta Was this translation helpful? Give feedback.
-
The brew install always asked/asks for sudo access exactly so it doesn't have to do that in normal operations |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
got the Admin rights and ran |
Beta Was this translation helpful? Give feedback.
-
Are user-space installs still discouraged? This seems like a reasonable answer to anyone without |
Beta Was this translation helpful? Give feedback.
got the Admin rights and ran
sudo chown -R <your_username>:admin /usr/local/*
and the issue resolved