nodemon is not recognized as an internal external command code example
Example 1: nodemon is not recognized
//You need to install nodemon as globally. Use this command
npm install -g nodemon
//Now you can use nodemon it will work
Example 2: 'nodemon' is not recognized as an internal or external command, operable program or batch file.
Run: $ npm install -g nodemon
Run: $ npm install --save-dev nodemon
Change package.json file as:
"scripts": {
"serve": "nodemon index.js"
}
Run: $ npm run serve