Nodemon not refreshing page automatically
while setting up a MERN app, i was using nodemon to reflect code edits and render the new code in real time. I used npm i -g nodemon which didn't work.
If you are facing the same issue then uninstall the nodemon and
add the flag --force nodemonwhile installing nodemon.
Like this npm install -g --force nodemon
Share this article

Spent an hour once debugging this only to find I was editing files outside the watched path. Facepalm.
Throwaway branch will test the idea Friday. Reviewers understood the file watch path change.
Common MERN gotcha. Make sure you’re restarting the right process and not an old terminal session.
Local npm install of nodemon as a devDependency was more reliable than -g for our team.
Nodemon flaking on save pushed small services toward Node’s native watch flag. Path diagnosis tips here still helped.