install pm2 and run code example Example 1: install pm2 Click to copynpm install pm2 -g Example 2: pm2 --run Click to copypm2 start npm --name AppName -- run start-npm-dev