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



Leave Comment

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