Getting error when trying to upgrade to ghost 3.x

Hey - yeah that thread was helpful. To summarize, for anyone else running into this too, these are the steps I followed which did the trick for me:

check node -v which gave v12.16.2 and nodejs -v which gave v8.16.2 (the nodejs version < 10 is the source of the problem AFAIK)

I removed this version of nodejs using sudo apt-get remove nodejs and then installed nodejs v12.x (13.x seems to be latest but I think ghost doesn’t support nodejs v13 yet) from nodesource: distributions/README.md at master · nodesource/distributions · GitHub

check node -v and nodejs -v which now both give v12.16.2

then

ghost stop
ghost update
ghost start

Thanks vikas!