Problems deploying after upgrade to 1.6

I upgraded my app to 1.6 on my dev machine and it works great. It also passed the CI tests on gitlab. I went to deploy and the app won’t start. I’m using pm2-meteor to deploy to an Ubuntu server. Looking at the error log I see

    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function._load (/usr/local/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/var/www/
    at Module._compile (module.js:410:26)

The server is running node 4.2.6 and npm 3.5.2. Do those need to be upgraded? What could be the problem?

You need to rune node 8.4 or later on server. Check the release blog.

Thanks. I installed “n” so I could install 8.9.0 with

sudo n 8.9.0

but after it installs

node --version

still gives me v4.2.6. How do I get it to recognize 8.9.0?

Nevermind. A reboot resolved.

We use nvm, which works really well and allows you to update / change versions on the fly

Reboot (using shutdown -r now) fixed the same issue for me. I was using nvm and pm2-meteor. This is the first time that combo has ever failed to work on the first attempt for me.