Escalation of privileges Node-red

I use Dietpi and nodered. When a line exec executes with vcgencmd measure_temp (or sudo vcgencmd measure_temp) responds

We hope you have received the traditional instructions from your local system administrator. Generally, they focus on these three elements:

     # 1) Respect the privacy of others.
     # 2) Think before using the keyboard.
     # 3) Great powers confer great responsibilities.


sudo: no tty present and no specified askpass program

how to do, change /etc/group, visudo, …

thank you so much


echo 'nodered ALL=NOPASSWD: ALL' > /etc/sudoers.d/nodered