Hello Mate,
Let's discuss problem statement.
Nodemon is a npm package which we can used to save our time but who?
nodemon walk every file changes and just restart node server again and again when we do change in files so now we don't have to restart node process manually nodemon will do for us.
To install:
npm install nodemon --save-dev
To serve:
nodemon server.js