Enable sudo without a password on MacOS
Open a terminal, run sudo visudo

Edit the line:

%admin ALL=(ALL) ALL


To say:

%admin ALL=(ALL) NOPASSWD: ALL


Now, you should now be able to run sudo without password.