Thanks @Hannah for your reply.
I have already downgraded ghost-cli.
yes I have 2 ghost instances installed and missing version information.
Those two instances are not running at the moment and both have Ghost v2. If this information helps.
BTW, I forgot to mention one thing In latest ghost-cli if I was use command with sudo then the error was not showing. The output was corrct version of CLI for ghost -v command but other command was not working with sudo. I think it is expected by the CLI design.
│Warning: MySQL 8 will be the required database in the next major release of Ghost.│
│ Make sure your database is up to date to ensure forwards compatibility. │
Ghost-CLI version: 1.23.1
Ghost version: 5.4.1 (at /var/www/ghost)
The logfile has the follows:
OS: Debian GNU/Linux, v10
Node Version: v16.17.0
Ghost Version: 5.4.1
Ghost-CLI Version: 1.23.1
Command: 'ghost update'
An error occurred.
Message: 'Invalid Version: null'
Stack: TypeError: Invalid Version: null
at new SemVer (/usr/local/lib/node_modules/ghost-cli/node_modules/semver/classes/semver.js:19:13)
at compare (/usr/local/lib/node_modules/ghost-cli/node_modules/semver/functions/compare.js:3:3)
at Object.lt (/usr/local/lib/node_modules/ghost-cli/node_modules/semver/functions/lt.js:2:29)
at UpdateCommand.run (/usr/local/lib/node_modules/ghost-cli/lib/commands/update.js:29:20)
at Function._run (/usr/local/lib/node_modules/ghost-cli/lib/command.js:197:35)
And I tried the CLI version you suggested plus the updated one.
Sorry for bringing this topic back up but I’m seeing the same problem.
I have a blog set up on DigitalOcean, using their automatic Ghost set up and I’m seeing this exact same issue. I tried different things (reinstalling ghost-cli, updating packages, etc) but nothing seems to work.