install nodemon

Code Example - install nodemon

                
                        # Install nodemon
npm install nodemon

# Install nodemon globally on your machine
npm install -g nodemon

# Install nodemon on your project as dev-dependency
npm install nodemon --save-dev
                    
                
 

installing nodemon in windows

                        
                                npm install -g nodemon
                            
                        
 

install nodemon globally

                        
                                npm install -g nodemon
                            
                        
 

nodemon not installing

                        
                                sudo npm install -g nodemon
                            
                        
 

nodemon install globally

                        
                                //Install nodemon on your project as dev-dependency
npm install nodemon --save-dev


//Update the package.json file
  "scripts": {
    "start": "node ./bin/www",
    "devstart": "nodemon ./bin/www",
    "serverstart": "DEBUG=your-folder-name:* npm run devstart"
  },

//On Windows, use this command:

SET DEBUG=express-locallibrary-tutorial:* & npm run devstart

//restart server by typing this on cmd rs (restart)
rs