I am running my nodejs app by npm start
npm start
I just installed nodemon by sudo npm install -g nodemon so that i can get my server restarted when i s
sudo npm install -g nodemon
If you are using express4, the easiest way is to navigate to package.json and change "scripts": { "start": "node ./bin/www" }
"scripts": { "start": "node ./bin/www" }
to "scripts": { "start": "nodemon ./bin/www" }
"scripts": { "start": "nodemon ./bin/www" }