Created: Oct, 2015
Last modified: Oct, 2015
sudo npm install nodemon -g
For NodeJS framework initiated by ExpressJS, just type “nodemon” to start the web app.
sudo npm install forever -g
To start an Node instances:
forever start index.js
To restart all instances after a source update:
forever restartall
To list all instances:
forever list
To stop an instance:
forever stop 0
where 0 is the instance number.
For more info, consult
forever -h
NODE_PATH=C:\Users\[USERNAME]\AppData\Roaming\npm\node_modules
Similarly, on Linux:
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
for globally installed modules.