Problem with Exec node Asus Tinker

Hi, im using node-red on a tinkerboard s and wen execute comands in exec node give me error 127 comand not fund, even wen try a sudo reboot give me like :

sudo: unable to set runas group vector: Operation not permitted
sudo: unable to set runas group vector: Operation not permitted
sudo: unable to open audit system: Operation not permitted
root is not in the sudoers file. This incident will be reported.

Any ideas ?

If you read the error messages what do you think they are telling you?

if i write the comand without sudo, the error message tell me the command "reboot" doesn't exist

The user 'root' trying to run sudo is not allowed to run sudo. You wll need to figure out how to add 'root' to the sudoers file.

You might want to ask about this on the tinkerboard forum

There is no point in root running the sudo command. The main problem is that it is not finding the reboot command. Have you tried shutdown -r instead?

I give the reboot a example, Every command don't work. it's weird because I use node-red in a lot of Asus but this time give me this time.
I will try Uninstall and install again

What if you provide the full path to the command? If that works then it is a PATH issue.