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.
Try to run
npm uninstall nodemonandnpm install nodemon.