xxxxxxxxxx
npm uninstall nodemon
sudo npm uninstall -g nodemon
sudo npm install -g --force nodemon
xxxxxxxxxx
//This happens because nodemon is not installed globally on your machine
//solution
npm install -g nodemon
xxxxxxxxxx
sudo npm install nodemon -g
// This command will install nodemon into the system
xxxxxxxxxx
// Installing globally should do the trick if you get 'command not found' error //
npm install -g nodemon --save-dev
xxxxxxxxxx
npx nodemon server.js
or add in package.json config:
"scripts": {
"dev": "npx nodemon server.js"
},
then run:
npm run dev
xxxxxxxxxx
nodemon command not foundWhatever By Mysterious Monkey on May 16 2020
npx nodemon server.js
or add in package.json config:
"scripts": {
"dev": "npx nodemon server.js"
},
then run:
npm run dev