Auto restart node after code changes

Posted on in JavaScript Node JS

When you are sick and tired of restarting your node app in the terminal (CTRL+C) on every code change you make then you can automate this process. Actually it’s really simple. Install Nodemon via the package manager.

$ sudo npm install nodemon -p

When you want to check if it correctly installed and on which version you are running Nodemon:

$ nodemon -v

Is everything correctly set? You can start Nodemon, by typing the following command in the root of your current node project. For example:

$ nodemon app.js
9 Apr 20:15:23 - [nodemon] watching: /Users/lee/Projects/nodejs/www
9 Apr 20:15:23 - [nodemon] starting 'node app.js'


  1. affordable payday says on
    April 3, 2014 at 2:33 am

    I would like to thank you for the efforts you have put in penning this website.
    I am hoping to view the same high-grade blog posts from you in the future as
    well. In truth, your creative writing abilities
    has encouraged me to get my very own site now 😉

Post a Comment

Your email is never published nor shared.
Required fields are marked *