What is difference between node and nodemon?

Alex picture Alex · Aug 20, 2016 · Viewed 11k times · Source

in my package.json I am using

"scripts": {
  "start": "node app.js"
},

but if I use nodemon replace with node app.js like

"scripts": {
  "start": "nodemon app.js"
},

then what will happen? Because when I got any error at server side, other API also close working. So I think it happen because I use node app.js if I use nodemon app.js than server will restart or not.

Answer

Simone Poggi picture Simone Poggi · Aug 20, 2016

When you develop a node app and you make some changes, to see them in effect you have to restart the server.

When you launch your node.js application with Nodemon it will monitor for any changes and automatically restart the server, improving your productivity.