Unable to upgrade Ghost

I’m encountering the same problem. Cannot upgrade to ghost v5.105.0 because it is not compatible with my node version, which is v16.13.0

But why do I have v16.13.0 installed?

Message: Ghost v5.105.0 is not compatible with the current Node version. Your node version is 16.13.0, but Ghost v5.105.0 requires ^18.12.1 || ^20.11.1

So I upgrade to version 18.12.1 and guess what message I get?

Ghost-cli is not compatible with version 18.12.1
Message: The version of Node.js you are using is not supported.
Supported: ^12.22.1 || ^14.17.0 || ^16.13.0
Installed: 18.12.1

So I can’t update to v5.105.0 because my node version is not compatible but I can’t get to the compatible node version because ghost-cli is not compatible with that version. So does ghost not want us to update our ghost install or are they purposely making it impossible to patch a security vulnerability–which they keep emailing me about, btw–so that we can sign up for Ghost Pro’s paid service?

I think that’s what’s happening here. Why not jus stop supporting self-hosted installs and get it over with?

1 Like

Oh, and in case you’re wondering, I cannot upgrade to the latest ghost cli version either because apparently

153 packages are looking for funding
run `npm fund` for details
**10** vulnerabilities (4 **moderate**, 5 **high**, 1 **critical**)
To address all issues (including breaking changes), run:
npm audit fix --force

But if I run “npm audit fix --force” what happens? Nothing

up to date, audited 1 package in 156ms
found **0** vulnerabilities

So frustrating.

1 Like

Your upgrade of ghost-cli was successful; the npm audit line applies more to the developers of the CLI.

It was not. If it were, why am I seeing this message whenever I try to update?

You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g ghost-cli@latest` to upgrade.
1 Like

You didn’t share that in your latest message :slight_smile: It sounds like you have multiple versions of the cli installed. You can run whereis ghost to confirm.

The problem in my case was ghost-cli path. When calling all the commands with /usr/lib/node_modules/ghost-cli/bin/ghost it is OK.