Npm on Ubuntu #

Sometimes ubuntu won't let you install packages, with error 'EACESS no permissions'. Then,

sudo npm install --save-dev  --unsafe-perm=true --allow-root

Running processes in the background #

Use the nohup command to run processes in the background. For example:

$ nohup node index.js &

To verify the process is indeed running:

$ ps xw

To terminate the process:

kill <PID>