Reputation: 1219
I was working with NodeJS, but due to some other issue I installed Windows again. Now I have installed nodemon gloabally and it also show version in C drive, but when I try to run project it gives me the error:
nodemon is not recognized as an internal command operable program or batch file
Upvotes: 0
Views: 23808
Reputation: 1
In My Windows this is Work :
Upvotes: 0
Reputation: 19
Upvotes: -3
Reputation: 609
Run: $ npm install -g nodemon
Run: $ npm install --save-dev nodemon
Change package.json file as:
"scripts": {
"serve": "nodemon index.js"
}
$ npm run serve
Upvotes: 6
Reputation: 1219
it was Loading error and was completely loaded after i restart System so that works
Upvotes: 0
Reputation: 31
Make sure that you have nodemon dependency in package.json file in your current project. If you don't see it listed in this file run npm i nodemon --save
Once checked, you might execute nodemon by:
nodemon index.js
(or whatever name your js file has)npm run start
(though you have to update scripts in your package.json file with new script "start": "nodemon index.js"
)nodemon
, but in this case you have to have index.js file in your current project as well, as by default nodemon will try to find and execute index.js file.Upvotes: 3