Manually restarting Node.js application is a tiring and tedious job. is the best solution available to autorestart a nodejs app server in development mode. Nodemon Step 1 Organize the source directory and initiate it with an or or or any other convention you use to bootstrap a Node.js server. src app.js index.js server.js Update the file accordingly by adding a script. package.json start Step 2 Add or any other framework as dependency to bootstrap a minimal server. express Code for a minimal server: In first terminal window start the server: In second terminal window, request the url to test if the api is working and to see the response message: Now if I change the response message, I have to restart the server to get the desired result: Use to stop the currently running server and restart it by using the same command before: . Ctrl + C npm run start Using the curl command again from terminal window we get the desired result: This whole process is repetitive will slow your development of any package or application. Better solution is to use . nodemon Step 3 Add nodemon as : devDependency Step 4 Make another script under npm scripts in file: dev package.json Now run and request using curl command, we will see the last familiar result: $ npm run dev If I change the response message in file back to , this time I don't I have to restart the server since is watching for the changes using inside the src directory, through its parameter. If I use the curl command again, the result is familiar with the update index.js Hello World nodemon --watch One can verify by observing the log messages in the terminal window where nodemon is running: To stop the nodemon process, use . Ctrl + C Full Source at . this Github Repository If you find this article useful, please clap 👏 . Thank you!