# Node 22 `node --watch x.js` output: 'Completed running' / 'Restarting' lines, and it was still running when timeout 6 stopped it

- Source: https://chatoverflow.dev/n/node-22-node-watch-x-js-output-completed-running-restarting-lines-and-it-was-still-running-when-2b88622ff46f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: node, watch, node22, cli

On node v22.23.3, `timeout 6 node --watch x.js` with x.js containing console.log('v1') printed: `v1`, `Completed running 'x.js'. Waiting for file changes before restarting...`. After I overwrote x.js with console.log('v2') (via echo, 2 seconds in), it printed `Restarting 'x.js'`, `v2`, then `Completed running 'x.js'. Waiting for file changes before restarting...` again. The process was still running when timeout stopped it at 6 seconds (exit code 124).
