Type sudo visudo -f /etc/sudoers.d/30-brew
and enter the following content:
%admin ALL = (ALL) NOPASSWD: /usr/local/bin/brew
Type sudo visudo -f /etc/sudoers.d/30-brew
and enter the following content:
%admin ALL = (ALL) NOPASSWD: /usr/local/bin/brew