Search code examples
node.jsmongodbnpmnpm-installnodemon

Nodemon is not recognized as a name of a cmdlet


I've worked on a project at home and it worked just fine, but when i cloned a repo on a multiple lab pc's it always gives the same error.

nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 nodemon

 CategoryInfo          : ObjectNotFound: (nodemon:String) [], CommandNotFoundException
 FullyQualifiedErrorId : CommandNotFoundException

I believe my path is correct

I've tried installing nodemon globally with a lot of methods

npm install -g nodemon
npm insatll -g nodemon --save

I've also tried deleting node_modules folder and npm install again


Solution

  • Nothing has really helped after trying around 25 different methods

    I had to fully uninstall node.js and reinstall it again.