Supported Node.js Versions

View as Markdown
Last updated November 16, 2026

Warning Node.js version 20 is deprecated on Launch. From December 2, 2026, deployments that use Node.js 20 fail. Update your projects to Node.js 24 or 22 before then to avoid disruptions. Support for Node.js version 18 was discontinued on August 1, 2025.

The following are the available Node.js versions on Launch:

  • 24.x (default)
  • 22.x
  • 20.x (deprecated: deployments fail from December 2, 2026)

Note

  • Only major Node.js LTS versions are supported. Launch updates all supported Node.js LTS versions to the latest minor and patch releases monthly, during the first week of each month. Existing projects receive these updates only when redeployed. Redeploy your projects after each monthly update to apply the latest updates and security fixes.
  • If the engines field is missing from package.json, Launch does not automatically upgrade Node.js for existing deployments. This safeguard prevents potential compatibility issues with Node.js libraries. Redeployments fail until you explicitly specify a supported version (for example, Node.js 24 or 22) in package.json.

Setting the Node.js Version in the package.json File

You can specify the major Node.js version in the engines section of the package.json file.

Example:

package.json

{
  "engines": {
    "node": "22.x"
  }
}

When a valid semver range for a major version (for example, 24.x) is specified in the package.json, the project is deployed with the latest available release of that major version.

Note If the engines section is not specified in package.json, a new environment uses the default Node.js version (Node.js 24.x), and an existing environment keeps the Node.js version of its last deployment.

Example Version Ranges and their Deployed Node.js Versions:

Version in package.jsonVersion deployed
20.x20.x
^20.0.020.x
20.11.120.x
>=20.0.024.x
>=18.x24.x
^22.0.022.x
>=22.0.024.x
24.x24.x

Node.js 20 Deprecation

Node.js 20 reached end of life on April 30, 2026. It no longer receives security fixes. Launch stops building deployments on Node.js 20 from December 2, 2026 (00:00 UTC).

Before December 2, 2026, deployments on Node.js 20 still succeed, and the deployment log shows this warning:

WARN: Node.js v20.x is deprecated on Launch. Deployments using this version will no longer work starting from December 2, 2026 (00:00 UTC). Please upgrade to a supported version. View supported versions here: https://www.contentstack.com/docs/developers/launch/supported-nodejs-versions

From December 2, 2026, deployments on Node.js 20 fail before the build starts, with this error:

ERROR: Node.js v20.x is no longer supported on Launch. Please upgrade to a supported version to continue deploying your projects. View supported versions here: https://www.contentstack.com/docs/developers/launch/supported-nodejs-versions

This applies whether you start a deployment in Launch, it runs automatically when content is published, or a deploy hook triggers it. Your live site keeps serving its last successful deployment.

Upgrade from Node.js 20

  1. In the package.json file at the root of your repository, set the engines field to a supported version. We recommend Node.js 24:

    {
      "engines": {
        "node": "24.x"
      }
    }
  2. Test the build locally, or in a non-production Launch environment.

  3. Commit the change.

  4. Redeploy each environment that uses Node.js 20.

Troubleshooting

If a deployment fails with the following error on or after December 2, 2026, the environment is still on Node.js 20:

ERROR: Node.js v20.x is no longer supported on Launch. Please upgrade to a supported version to continue deploying your projects. View supported versions here: https://www.contentstack.com/docs/developers/launch/supported-nodejs-versions

Your package.json either sets engines.node to a Node.js 20 version (such as 20.x, ^20.0.0 or an exact 20.11.1), or has no engines field and the environment's last deployment used Node.js 20. Follow the steps in the Upgrade from Node.js 20 section.

If, after you upgrade, the deployment log shows a warning that npm blocked the install scripts of some dependencies, packages that need those scripts (for example, sharp) may fail during the build or at runtime. Allow those packages in the allowScripts field of your package.json, or set the NPM_CONFIG_DANGEROUSLY_ALLOW_ALL_SCRIPTS environment variable to true on the environment to run all install scripts, then redeploy.

If you encounter the following error when redeploying an existing project, it is likely due to the Node.js version settings:

ERROR: Node.js v18 and below are no longer supported on Launch. Please upgrade to a supported version to continue deploying your projects. View supported versions here: https://www.contentstack.com/docs/launch/supported-nodejs-versions

Your latest live deployment was created before August 1, and your package.json does not specify an "engines" property. In such cases, the deployment still defaults to Node.js 18, which has now been discontinued. As a result, redeployments of these projects fail.

To ensure smooth deployments, explicitly define the Node.js version in your package.json:

  1. Add the following snippet.
  2. Commit the change.
  3. Redeploy.
{
  "engines": {
    "node": "24.x"
  }
}

This configuration instructs the deployment system to use Node.js 24.x, which is the current default supported version.

  • For new environments, if the "engines" field is not specified in package.json, Launch defaults to the latest supported LTS version available at the time the environment is created.
  • For existing environments, deployments continue to use the previously configured (or previously defaulted) Node.js version (for example, Node.js 22.x) unless it is explicitly updated via the "engines" field in your package.json.