In order to run Node.js applications one would have to type node along with the filename.
This process has to be repeated every time you want to run code. But let’s say you have a program that automatically runs your code whenever you make updates to the application? Wouldn’t that be great? It would save you time from the repetitive process of executing a command.
Fortunately such a program exists and it is called “Nodemon”. Nodemon monitors changes in your code and then automatically restarts your server whenever there is a change.
How to Install Nodemon?
Just Enter this command on the terminal
npm install -g nodemon