'nodemon' is not recognized as an internal or external command

I am a software engineer intern from the UK and I have worked with multiple technologies like MERN stack, JavaScript, Python etc. I also like to contribute to open source on Github.
Introduction
In this article I will discuss how to solve the error 'nodemon' is not recognized as an internal or external command. This can be a common error for a beginner in node/express.js and this article will show you a quick and easy solution to fixing this.
Solution
To solve this error you can simply type:
npx nodemon server.js
Make sure that you type the name of your main file in your Node.js application, this is usually the server.js file or the index.js file.




