Try to update node to install ghost 5.71.1

Hi guys !
I use digitalOcean for ghost blog self hosting. It’s a 1click install.
It uses NodeJS 16.x.
How do you do to update nodeJS to 18.x
I tried the tutorial on the Ghost website, but it failed.
I also tried this but Ghost doesn’t start.
I saw an issue about a database connection.
Is there someone to help me ?

1 Like

So a difference between Node 16 and 18 is whether they use IPv4 vs 6 preferentially. You probably have your database only on IPv4, but Node is trying to connect to it on IPv6. Here’s the fix:

1 Like