⚡
Install NPM & PM2 On Linux
Need help setting up NodeJS & PM2 on a Linux server? Don't worry, it's easy.
Curl:
sudo apt install curl -y
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 18.8.0
npm install -g pm2
pm2 start index.js --name "name"
pm2 save
Last modified 14d ago