Upgrade Node.js for your Ghost

Table of Content

Upgrade Node.js

When upgrading Node.js, you need to run the update 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:

  1. curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash to update your source list with the version of Node.js you want to upgrade to.
  2. sudo apt-get install -y nodejs to upgrade Node.js
  3. Run ghost version to get your current Ghost version
  4. ghost update [version] --force to force Ghost to reinstall your current version of Ghost, to trigger a re-installation of dependencies.

npm install -g n sudo n 14.17.3
Upgrade to a certain Node.js version

It’s not recommended updating Node and Ghost at the same time. Reinstalling the current version of Ghost ensures that the Node is updated correctly first, so that you can be sure that Ghost will update smoothly.

Supported node versions for self-hosted installs of Ghost
Self-hosted installs of Ghost are recommended to use the supported node versions to ensure you don’t run into any common errors. Find out more information.

Are You Truly Ready to Put Your Mobile or Web App to the Test?

Don`t just assume your app works—ensure it`s flawless, secure, and user-friendly with expert testing. 🚀

Why Third-Party Testing is Essential for Your Application and Website?

We are ready to test, evaluate and report your app, ERP system, or customer/ patients workflow

With a detailed report about all findings

Contact us now






Open-source Apps

9,500+

Medical Apps

500+

Lists

450+

Dev. Resources

900+

Read more