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.
@GBJsolution Would you mind updating to Ghost-CLI 1.17.1 to see if you still experience issues? That version should contain a fix for the issue you ran into.
Yes! the problem is solved.
Ghost CLI v1.17.1 does not show the error anymore.
Thanks to entire Ghost team specially Hannah and Austin for such fast response and quick fix. Lots of love
ghost -v
Love open source? Weβre hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β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:
Debug Information:
OS: Debian GNU/Linux, v10
Node Version: v16.17.0
Ghost Version: 5.4.1
Ghost-CLI Version: 1.23.1
Environment: production
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.