Node JS ctrl + C doesn't stop server (after starting server with "npm start") : <p>When I start my server with <code>node app.js</code> in the command line (using Git Bash), I can stop it using ctrl + C.</p>

<p>In my package.json file i got this start-script that allows me to use the command <code>npm start</code> to start the server:</p>

<pre><code>"scripts": {
    "start": "node app"
},
</code></pre>

<p>When I do this, the server starts as normal:</p>

<pre><code>$ npm start

&gt; nodekb@1.0.0 start C:\Projects\nodekb
&gt; node app.js

Server started on port 3000...
</code></pre>

<p>But when i ctrl + C now, the server does not get stopped (the node process still remains in task manager). This means that I get an error when I try to do <code>npm start</code> again, because port 3000 is still being used.</p>

<p>I'm following a tutorial on youtube (<a href="https://youtu.be/sB3acNJeNKE?t=6m24s" rel="noreferrer">video with timestamp</a>), and when this guy ctrl + C and then runs <code>npm start</code> again, it works as normal.</p>

<p>Any ideas why my server process is not stopped when I use ctrl + C?</p>

<p>My app.js file if needed:</p>

<pre><code>var express = require("express");
var path = require("path");

//Init app
var app = express();

//Load View Engine
app.set("views", path.join(__dirname, "views"));
app.set("view engine", "pug");

//Home Route
app.get("/", function(req, res) {
  res.render("index", {
    title: "Hello"
  });
});

//Add route
app.get("/articles/add", function (req, res) {
  res.render("add_article", {
    title: "Add Article"
  });
});

//Start server
app.listen(3000, function() {
  console.log("Server started on port 3000...");
});
</code></pre>

<p>Thanks!</p>
