I have a node app, that I\'m trying to add as a service, the app works fine if I go to the directory where it\'s installed and do node start.js however when I do
node start.js
I had this problem. I wasn't using the same node version in systemd
$ which node /usr/local/bin/node
Replacing /usr/bin/node with /usr/local/bin/node in ExecStart fixed it for me.
/usr/bin/node
/usr/local/bin/node
ExecStart