To end the program, you should be using Ctrl + C. If you do that, it sends SIGINT
, which allows the program to end gracefully, unbinding from any ports it is listening on.
See also: https://superuser.com/a/262948/48624
More Related Contents:
- How to execute an external program from within Node.js?
- im new to making discord bots with node.js, i am having trouble with an error, it says that message is not defined in line 14 and 18
- E11000 duplicate key error index in mongodb mongoose
- NPM Install Error:Unexpected end of JSON input while parsing near ‘…nt-webpack-plugin”:”0’
- How to share sessions with Socket.IO 1.x and Express 4.x?
- Mongoose: findOneAndUpdate doesn’t return updated document
- How to include route handlers in multiple files in Express? [duplicate]
- How to redirect 404 errors to a page in ExpressJS?
- callback to handle completion of pipe
- What is the difference between res.end() and res.send()?
- Declare multiple module.exports in Node.js
- Express next function, what is it really for?
- npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- How do you authenticate a server to Firebase?
- How can I get the path of a module I have loaded via require that is *not* mine (i.e. in some node_module)
- async await with setInterval
- projection not working with find query
- How can I get a list of callbacks in the Node work queue? (or, Why won’t Node exit?)
- How can I import an ES module in the Node.js REPL in Node 8?
- How to send a pdf file from Node/Express app to the browser
- PostgreSQL multi-row updates in Node.js
- How to install nvm in docker?
- Mongoose: CastError: Cast to ObjectId failed for value “[object Object]” at path “_id”
- Sinon stub function used with destructuring
- What’s the difference between path.resolve and path.join?
- Unable to Change Favicon with Express.js
- npm install that requires node-gyp fails on Windows
- npm update check failed
- Mongoose overwrite the document rather that `$set` fields
- How to access Google Chrome’s IndexedDB/LevelDB files?