> ## Content Index
> Fetch the complete content index at: https://logbuch-dev-blog.nichedthemes.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Restarting a Node server on save, without nodemon
- URL: https://logbuch-dev-blog.nichedthemes.com/restart-on-save-without-nodemon/
- Published: 2026-10-24T08:00:00.000Z
- Updated: 2026-10-24T08:00:00.000Z
- Description: node --watch restarts the process when a file it loaded changes. It replaced a dependency and a config file in stummel.
- Author: Mira Okafor
- Tags: Tooling, Backend, #video-header, #Import 2026-11-19 07:37

0:00 

/0:07 

1× 

Save, restart, curl. The clip loops.

`node --watch` restarts the process when any file it imported changes. It has been stable since Node 22, and it replaced nodemon and its config file in stummel.

```json
{
  "scripts": {
    "dev": "node --watch src/server.ts" // [!code ++]
    "dev": "nodemon --exec node src/server.ts" // [!code --]
  }
}
```

## Where it falls short

It watches what the process loaded, not the folder. A template read with `readFile` does not restart it. `--watch-path=templates` adds that folder.