Update node using nvm
nvm install 6.3
nvm alias default 6.3
nvm use 6.3
Install and Update pm2
npm install pm2@latest -g ; pm2 update
sudo update-rc.d -f pm2-init.sh remove [--force]
pm2 startup ubuntu
To switch any saved processes to use new node version
pm2 restart all
can you explain what
sudo update-rc.d -f pm2-init.sh remove [--force]
is doing ?