Preview:
sudo -i
cd /n8n
pm2 stop n8n
npm install -g n8n@latest
pm2 restart ecosystem.config.js

Bret notes:
it starts if i do it manually 
i guess i have to manually start it first
pm2 start n8n then restart as pm2 start ecosystem.config.js
i think im missing that from my config file

downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter