Using nodemon for windows

This package is used when you are working on a node.js apps and wanted to automatically restart the server should there be any file changes occurs during your development.

To Install

npm i nodemon -g

For Windows Users, you need to manually add it to your system’s environment variable, to do this:

  1. Figure out where the node.js is installed by using the command below.

npm config get prefix

Sample output:

  1. Using the value provided create a new entry in the “PATH” environment variable.
  2. After adding, restart your cli tool and try executing the “nodemon” script.

To use

nodemon <script name>

Sample output: