Brew has not been added to sudoers.d
I keep getting this, despite having run sudo valet trust in the past, and running it again now. I have also run sudo chmod +r /private/etc/sudoers.d/brew to no avail. Is there anything else to try?
MacOS 12.4, M1 Max, Valet 3.1.9
I've found https://github.com/nicoverbruggen/phpmon/issues/23 from a year and a half ago, the issue still remains.
Hi @MattRogowski!
What does your /private/etc/sudoers.d/brew file look like? On M1, it should reference /opt/homebrew/bin/brew, like this:
Cmnd_Alias BREW = /opt/homebrew/bin/brew *
%admin ALL=(root) NOPASSWD:SETENV: BREW
This can come up if you're running PHP Monitor natively for M1 while you have Homebrew running with Rosetta. In that case, you may want to try running PHP Monitor using Rosetta (please consult the FAQ for more info about that, under the section "I've got two Homebrew installations on my Apple Silicon Mac, can I choose which installation to use with PHP Monitor?").