ok, so you installed using the node-red installer script.
Try this...
- open a terminal
- run
node-red-stop
(to stop node-red) - enter
export XDG_RUNTIME_DIR=/run/user/$(id -u)
- enter
node-red
- test your exec nodes
If this works, edit your service file as described in my previous post & restart the pi