Homebrew install - sudo?
Solution 1
Simple solution
in the terminal type first
sudo su
Type the password
Install homebrew
Solution 2
Open a new terminal session.
type sudo whoami
If it comes back with root then you have root privileges. You can also check under users and groups to see if you are an admin.
Also try running it again but using sudo first. You can also type sudo !! and that will run the previous command as sudo.
chunzg
Updated on June 04, 2022Comments
-
chunzg almost 2 years
I am trying to install Homebrew in my terminal. It first asked me for Password which I typed in (the password I use to login to my computer) and hit enter. Then it comes up with 'Need sudo access on macOS!' - what does this mean? I am already the admin (as far as I know) as this is my personal laptop, noone else uses it. I don't understand what else they need!
My aim is to install git but I can't even get this to install first..
Can anyone help, thanks :)
-
Jérôme about 4 yearsWhat is the command you're using ?
-
-
bfontaine about 4 yearsFYI I downvoted, not because this is not true, but because it’s not useful here. Homebrew’s install script asks for
sudo
access for some operations, but the script itself should not be ran usingsudo
. -
bfontaine about 4 yearsAgain: no. It’ll even abort itself if you try do so: github.com/Homebrew/install/blob/…
-
denfromufa almost 2 yearsThis resolved my issue - black magic!