I'm a beginner to node.js/express, I created a sample project and when i tried running the project/server through nodemon it shows error(I've done another project before and it worked fine).
I have tried re-installing the nodemon, even tried installing it again globally. Nothing seems to be working. But, when i run my older project it still works fine.
Deleted my current project and did it again from scratch but the same issue triggers again and again.
running the project as node app.js
works.
I've changed the
"start": "node app.js"
to
"start": "nodemon app.js"
Well, can you check if the directory is correct? and in the given path the file exists. You can also check after updating node. and if you have found the solution do comment in detail.