The issue is php runs on the `www-data` account, which cannot run the `node` in command line. (You need `auser` to run `node`) So you have to put `www-data` to suders for `node`.
Add this line to suders by `sudo visudo`: www-data ALL=(ALL) NOPASSWD: /home/auser/.nvm/versions/node/v22.11.0/bin/node
Invoke `node` with this command
exec('sudo -u www-data /home/auser/.nvm/versions/node/v22.11.0/bin/node '.$path);