Nodemon run your server in watch mode, if there is any change it restart the application automatically. During development we need to restart the server manually for every change. To skip this hectic task of restarting server again and again, nodemon module is there. 

Features of Nodemon

  • Open source
  • Automatic apply changes with auto-restart the server
  • Detect default file extension to monitor
  • Requirable  in Node.js apps
  • Works with server applications or one-time run utilities


Nodemon can be installed using npm command.

We can install it globally by

npm install -g nodemon

It can also be installed locally

npm install nodemon --save-dev

Now run your server with nodemon command instead of node command.

nodemon your_app

For example if your app is server.js, you will run

nodemon server.js



Categories: NodeJS

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts


Interceptor: Intercepting third party Request and Response on the Server side

In the previous post, we have seen 1) What are the interceptors? 2) How to intercept HTTP calls at the client side in Angular2 and Angular4? On the server side, there are scenarios where we need Read more…


NodeJS : Continuation Local Storage or Thread Local Storage?

Sometimes you need piece of data, most of the time request/response objects, between different events of a request where it is generally not accessible. Continuation Local Storage is a package to access the current express Read more…

Interview Questions

Nodejs Interview Questions

Important Interview Questions for Node.js 1) What is Nodejs ? 2) What is NPM ? 3) Different types of API’s exist in Node (api methods)? 4) What is event looping ? 5) What is event Read more…