Unable to upgrade Ghost due to npm version

I see. You will need to log into your DigitalOcean droplet and update NodeJS there.

I assume you are using the one-click installation there? Then this should work for you:

Replace the setup_10.x with setup_18.x