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
I think it would be uninstalling the previous auto start script setup by previous version of pm2. However this gist is from a long time ago and I wouldn't recommend relying on it.