i get error while starting node service using 'su' command."command not found 'node' no such file or directory". However when i give complete path of node it works. Looks like node path is not recognizing.
Not working:
su test -c "node server"
Working:
su test -c "/home/test/.nvm/v4.3.1/bin/node server"
I tried to include -m and -p. it didnt work. any idea on how to avoid using complete path of node?
via Md134
No comments:
Post a Comment