Tips or procedure for upgrading Node version

I’d like to upgrade from ghost 5.130.3 to ghost 6.0.1, but my node version is too old.

Message: Ghost v6.0.1 is not compatible with the current Node version. Your node version is 18.20.8, but Ghost v6.0.1 requires ^22.13.1

Environment info:

    OS: Ubuntu, v24.04.3 LTS
    Node Version: v18.20.8
    Ghost Version: 5.130.3
    Ghost-CLI Version: 1.28.3
    Environment: production
    MySQL: 8

I’d like to update Node and make sure it’s working before trying to upgrade ghost.

Can anyone point me to an up to date tutorial on now to do that? The last time I tried to update Node, I broke my server.

I’m searching as well and will post a link if I find a procedure.

I’m trying this:

I’ll post after attempting the upgrade.

Any other tips would be most helpful.

I have a snapshot of my DigitalOcean Ghost vm in case it goes south.

That process worked.

I’m now on Node v22.18.0 and the update to ghost 6.0.1 is proceeding.

2 Likes