nodemon doesn't restart after any changes I do. currently, there is no difference between nodemon and node command
console.log('one')
if I use nodemon command and change 'one' to 'two' i get "restarting due to changes..." and nothing happens after that
this is my package.json file
{
"name": "weather_app",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"connect-livereload": "^0.6.1",
"handlebars": "^4.7.7",
"hbs": "^4.1.2",
"livereload": "^0.9.3",
"nodemon": "^2.0.12"
}
}
this problem started after I formatted my pc but, I don't think that's the reason if you could help me I would be very grateful
I just fixed this problem by downgrading nodemon to 2.0.2 you can do that by uninstalling the package and installing it again
npm uninstall nodemon
then
npm i nodemon@2.0.2