I have all the npm pacakages installed for a particular user (i.e) not root (/home/otheruser/*)
I am using monit to see whether to check the program is running. In this case its pm2, which is in
/home/otheruser/.nvm/versions/node/v5.2.0/bin/pm2
I cannot use pm2 even when I tried using the full path from other users in the terminal even with root user. It didnot gave any output or nothing happened there like below.
root@server:~$ /home/otheruser/.nvm/versions/node/v5.2.0/bin/pm2 list
whenever I run node modules with different users like
root@server:~$ /home/otheruser/.nvm/versions/node/v5.2.0/bin/forever -v
root@server:~$ /home/otheruser/.nvm/versions/node/v5.2.0/bin/db-migrate -v
root@server:~$ /home/otheruser/.nvm/versions/node/v5.2.0/bin/pm2 -v
And I get the below in the syslog
node[5791]: No AX.25 port data configured
node[5791]: No AX.25 port data configured
node[5791]: No AX.25 port data configured
How to get that working from other users