# Getting error when trying to upgrade to ghost 3.x

**URL:** <https://forum.ghost.org/t/getting-error-when-trying-to-upgrade-to-ghost-3-x/13636>\
**Category:** Installation\
**Created:** [April 18, 2020, 1:19pm UTC](https://forum.ghost.org/t/getting-error-when-trying-to-upgrade-to-ghost-3-x/13636 "2020-04-18T13:19:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fatruchir](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@fatruchir](https://forum.ghost.org/u/fatruchir)\
**Post date:** [April 19, 2020, 6:00am UTC](https://forum.ghost.org/t/getting-error-when-trying-to-upgrade-to-ghost-3-x/13636/3 "2020-04-19T06:00:40Z")

</div>

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](https://github.com/nodesource/distributions/blob/master/README.md)

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

then

```auto
ghost stop
ghost update
ghost start

```

Thanks vikas!

---

_[View the full topic](https://forum.ghost.org/t/getting-error-when-trying-to-upgrade-to-ghost-3-x/13636)._
