Cannot upgrade to Ghost v.4.x on Node v14.x

Docs Supported node versions for self-hosted installs of Ghost show Node 14.x is compatible with Ghost v4.0 but we are seeing an error as
Ghost v4.6.0 is not compatible with the current Node version.
How can we solve this?

$ ghost -v
Ghost-CLI version: 1.15.3
Ghost version: 3.41.5 (at /opt/bitnami/apps/ghost/htdocs)

$ ghost update
You are running an outdated version of Ghost-CLI.
Run `npm install -g ghost-cli@latest` to upgrade.
...
Message: Ghost v4.6.0 is not compatible with the current Node version.
...
Debug Information:
  OS: Debian GNU/Linux, v10
  Node Version: v14.15.4
  Ghost Version: 3.41.5
  Ghost-CLI Version: 1.15.3
  Environment: production
  Command: 'ghost update'

Can you try a few things?

  • Update your CLI version - there are some changes which should help identify users with multiple node versions installed
  • Update your node version - Ghost requires at least node 14.16.1 as it was a security release

Thanks @vikaspotluri123
Now I think I’m stuck in the pit to upgrade Node on Bitnami/Debian (Default location won’t update, new location isn’t picked up). It’s frustrating, but will try to solve that and then get back to my actual Gatsby problem.

Updated Node, and ghost-cli

Now seeing this:

 Are you sure you want to proceed with migrating to Ghost 4.6.0? Yes
 ✔ Updating to a major version
 ✔ Stopping Ghost 
 ✔ Linking latest Ghost and recording versions
 ✖ Restarting Ghost
 A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: Cannot run Ghost without SSL
when Stripe is connected. Please update your url config to use "https://"

Debug Information:
  OS: Debian GNU/Linux, v10
  Node Version: v14.17.0
  Ghost Version: 4.6.0
  Ghost-CLI Version: 1.17.3
  Environment: production
  Command: 'ghost update'

Additional log info available in: /home/bitnami/.ghost/logs/ghost-cli-debug-2021-05-25T21_52_38_635Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
? Unable to upgrade Ghost from v3.42.5 to v4.6.0. Would you like to revert back to v3.42.5?