npm run dev background code example
Example: npm run serve in background
# First install pm2 globally
pm2 --name HelloWorld start npm -- start
# List runnin processes
pm2 ps
# Stop process
pm2 delete <id>
# First install pm2 globally
pm2 --name HelloWorld start npm -- start
# List runnin processes
pm2 ps
# Stop process
pm2 delete <id>