Nodemon express code example
Example 1: install nodemon
npm install nodemon --save-dev
Example 2: nodemon
npm install -g nodemon
Example 3: installing nodemon in windows
npm install --save-dev nodemon
Example 4: nodemon global instal npm
npm install -g nodemon
Example 5: nodemon package.json start
{
"name": "abc",
"version": "0.0.1",
"description": "my server",
"scripts": {
"start": "nodemon my_file.js" // <=
Example 6: nodemon script
npm i nodemon
"scripts": {
"start":"nodemon index.js"
}
nodemon ./server.js localhost 8000