# 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
npm install nodemon --save-dev
// globally install nodemon
npm install -g nodemon
// modify package > script for easily use
"start": "node index.js", // replace index.js by your file-name
"start-dev": "nodemon index.js",
# Install nodemon
npm install nodemon
# Install nodemon globally on your machine
npm install -g nodemon
#
nodemon index.js
# Install nodemon on your project as dev-dependency
npm install nodemon --save-dev
"scripts": {
"start": "node ./bin/www",
"devstart": "nodemon ./bin/www",
"serverstart": "DEBUG=express-locallibrary-tutorial:* npm run devstart"
},
// Note: In order to prevent nodemon from automatically restarting your
// application before you've finished updating your code,
// you will need to turn off Autosave on VS Code and remember to save manually.
// Install it globally with the following command:
npm install -g nodemon
# Install nodemon globally
npm install -g nodemon
npm i cors express nodemon
npm install nodemon
{
"execMap": {
"pl": "perl"
}
}
#nodemon on project
yarn add nodemon -D
#to run nodemon from any folder
yarn add -g nodemon
#run with nodemon
nodemon index.js if nodemon install globally
if you want to run from command used script inside package.json
"script":{
"server":"nodemon index.js"
},
run using yarn run server
// nodemon wraps around the node command.
// To use, it, use nodemon wherever you would normally use the node
// command.
// To use it in the Express server that you just generated,
// you can go to the package.json file inside mynamedServer folder
// and replace this line: "start": "node ./bin/www"
// with this "start": "nodemon ./bin/www"