- Install NVM on Ubuntu 20.04
- curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
- source ~/.profile
- https://tecadmin.net/how-to-install-nvm-on-ubuntu-20-04/
- NVM frequent commands
- nvm install –lts
- node -v
- npm -v
- nvm install –lts
- Send email
- https://www.w3schools.com/nodejs/nodejs_email.asp
- Set up 2FA and app password for your Gmail account.
- Install PM2 on Ubuntu 20.04
- npm install pm2 -g
- PM2 frequent commands
- pm2 start app.js
- Check logs