Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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


Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #nodemon #install #globally
ADD COMMENT
Topic
Name
8+8 =