If you wanna run it in background, use tmux. `tmux new -d "node index.js"` Which you could attach later when needed by running `tmux attach`.