Ghost's current recommended Node version is Node v10 LTS
|6.x (Node v6 Boron LTS)||Supported|
|8.x (Node v8 Carbon LTS)||Supported|
|10.x (Node v10 Dubnium LTS)||Recommended|
We use the recommended version of Node in production on Ghost(Pro) which means it’s heavily tested and issues are actively fixed by the Ghost core team.
Running Ghost on the latest version of node is not guaranteed to work, and we’re unable to offer support for any issues. Ghost is a small team so we keep version support to a minimum to give us time to build new features 🏃♀️
If you attempt to install Ghost with an unsupported version of Node.js, you may encounter the error ERROR: Unsupported version of Node and/or Exit status 231. To resolve this, you must install a compatible version of Node.js.
Unable to convert from source HTML to Mobiledoc or Error: Cannot find module 'jsdom'. These errors occur when trying to use the Admin API with Node v6, which isn't supported. Please upgrade to Node v8 or higher.
When upgrading Node.js, you need to run the upgrade for Node and then also re-install Ghost's dependencies. This is because Ghost has several binary dependencies which are compiled for the specific Node.js version. Without reinstalling dependencies, Ghost will fail to start with strange error messages.
To upgrade the steps are:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash- update your source list with the version of Node.js you want to upgrade to.
sudo apt-get install -y nodejs- upgrade Node/ks
ghost update --force- force Ghost to update even if there are no new versions of Ghost, to trigger a re-install of dependencies.
Why follow LTS?
We try to encourage the community to support each other, but more often than not it falls to us to ensure our users have a good experience.
Ghost is a tiny team with ambitious plans and we need to focus on delivering a useful product. By following LTS we can focus our efforts on meaningful work and keep our time spent on node versioning to a minimum. It also allows us to delay the support impact until later and give us a chance to grow our team to cope with the support in the meantime.
If you want to run Ghost on the latest version of node you can, however we are unable to offer support for any issues.