I am trying to run a nodejs application I built on my windows machine unto my Ubuntu Server 14.04.
I have installed nodejs and pm2 hovewer when I try to start the pm2's web interface using pm2 web
or start my nodejs app using pm2 start myapp.js
, it throws this error: /usr/bin/env: node: No such file or directory
Am I doing something wrong?
PM2 is a Node. js process manager that comes with a built-in load balancer. It helps facilitate production deployments and enables you to keep running applications alive indefinitely (even when accidents occur).
Restart on file change To totally disable the watch feature, do: pm2 stop app --watch or toggle the watch option on application restart via pm2 restart app --watch .
You must run following command in console:
sudo ln -s /usr/bin/nodejs /usr/local/bin/node
and try again to run the node app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With