0
I am learning nodejs and would like to know how to add nodemon so that every time I save the project the same update my web page.
I installed nodemon globally and put it in the package.json call
{
"name": "meuprojeto",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "nodemon ./bin/www"
},
"dependencies": {
"body-parser": "~1.18.2",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"ejs": "~2.5.7",
"express": "~4.15.5",
"morgan": "~1.9.0",
"serve-favicon": "~2.4.5"
}
}
Only when saving, my web page does not update automatically.
I also tried to run the project directly with nodemon, entering the folder and typing nodemon
.
How do I set it up correctly?