07-21-2023, 05:03 PM
I was able to fix this by switching to [nodemon][1] to run the server.
```
npm install --save-dev nodemon
```
**package.json**:
```
"scripts": {
"start": "nodemon app"
},
```
I was trying to get `json-server` to quit a custom server script, but it always left a child process running on Windows. It seems to be a specific problem running `express` via `npm` on Windows. If you run the server directly via the `c:>node server.js` then it seems to quit correctly.
[1]:
```
npm install --save-dev nodemon
```
**package.json**:
```
"scripts": {
"start": "nodemon app"
},
```
I was trying to get `json-server` to quit a custom server script, but it always left a child process running on Windows. It seems to be a specific problem running `express` via `npm` on Windows. If you run the server directly via the `c:>node server.js` then it seems to quit correctly.
[1]:
[To see links please register here]