11 thoughts on “Installing Node.js, PM2 and Yarn on CentOS

  1. Hi! Thanks for your videos. They are really easy to follow and well-explained. Every time I try to start http-server, I can access the IP using curl when I'm logged in with ssh. However, I can't access the IP with the browser. It times out every time… What do I do wrong?!

  2. for some reason pm2 start (not startup – 'pm2 start –name app app.js') doesn't work for me if I run as a non root user. I get the message saying: " Spawning PM2 daemon with pm2_home=/home/<user>/.pm2" but not the pretty table with the processes and it doesn't actually start the app. If I login as root and run the same command, it works fine. Even more weird is when I run the startup command as root and assign it to the user that couldn't run pm2 start I get this error: 'Job for pm2-USER.service failed because a configured resource limit was exceeded. See "systemctl status pm2-USER.service" and "journalctl -xe" for details.' Any thoughts why?

Leave a Reply

Your email address will not be published. Required fields are marked *