PM2 server restart on reboot [Windows]

How to restart a pm2 app when system is restarted.

First install.

npm install -g pm2-windows-service

Refer here. Solution 2 worked for me -> https://blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75

Kaldi