Nodemon not working and displaying "command not found" error

22 views Asked by At

When I am trying to run my express server with the command 'nodemon solution.js' it gives an error message

C:\Users\anura\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found

I've looked up all the solutions on stackoverlflow and reddit but nothing seems to fix it. The only solution that works is if I add a start script in the package.json file but its a hassle. Does anyone has any solution for this problem.enter image description here

Tried adding the path of nodemon to system variables it still doesnt works.

1

There are 1 answers

2
mfusco On

Try to run npm uninstall nodemon and npm install nodemon.