npm run serve in background

C++
# First install pm2 globally
pm2 --name HelloWorld start npm -- start

# List runnin processes
pm2 ps

# Stop process
pm2 delete <id>
Source

Also in C++: