Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unsure why nodemon isn't working, tried all solutions

I’ve installed nodemon globally many times but when I try and run it, it doesn’t work. This is the error I’m getting:

nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, 
or if a path was included, verify that the path is correct and try again.    
At line:1 char:1
+ nodemon server.js
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (nodemon:String) [], CommandN  
   otFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I don’t understand why I can’t use nodemon when I’ve installed it globally. I get this error in my VSCode terminal but in my cmd.exe, I get this error:

'nodemon' is not recognized as an internal or external command,
operable program or batch file.

I’ve tried installing it globally from both the terminal and command prompt. I’ve also tried deleting node_modules and package-lock.json, and reinstalling them by doing npm install. I don’t understand why this is happening and don’t know what to do.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use npx nodemon, your environment variables of your OS are probably broken and don’t link to where npm global packages get installed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading