Upgraded my Masto server from 16.04 and 18.04, and had to do the following just to get the instance back up again:
Reinstall npm (It wasn't installed anymore?)
Uninstall and reinstall all gems
I also stopped the postgres 9.10 services running and reinstalled all of nodejs just to be safe.