# 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 -g nodemon
npm install nodemon --save-dev
# Install nodemon
npm i nodemon
# Write a script like ...
"scripts": {
"start":"nodemon index.js"
}
# Start in your terminal with something like ...
nodemon ./server.js localhost 8000
or
npm run server
// 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",
------------------package.json FILE
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js"
},
------------------package.json FILE
------------------[console]
npm run dev
------------------[console]
# 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
npm i -D nodemon
# Install nodemon on your project as dev-dependency
npm install nodemon --save-dev
#or
npm i nodemon --save-dev
#nodemon as -dev cause there is no need nodemon in production
# Install nodemon globally
npm install -g nodemon
nodemon [your node app]
npm i cors express nodemon
npm install -g nodemon # or using yarn: yarn global add nodemon
# Install nodemon on your project as dev-dependency
npm install nodemon --D
npm i --save-dev nodemon
npm install nodemon
{
"execMap": {
"pl": "perl"
}
}
# when this command doesn't work:
npm install -g nodemon
# Can try
sudo npm install -g nodemon
#It will then ask you to enter the password you use to log on to your computer.
#So, if you have any problems with this step.
#1. Make sure you are logged in to your computer on an account with admin privileges.
#2. Use sudo in front of the installation command.
#3. Type your password when prompted. Note your password typing will not show. Just hit enter once you've typed it all.
//install globally to your system path.
npm install -g nodemon
//install nodemon as a development dependency:
npm install --save-dev nodemon