cs-icon.svg

Supported Node.js Versions

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

  • 20.x
  • 18.x (default)

Note: Only major long-term support (LTS) versions are supported. Contentstack Launch will automatically update to the latest minor versions and security patches.

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

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

Example:

package.json

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

When a valid semver range for Node.js 20 (e.g. 20.x) is specified in the package.json, the project will be deployed with the latest available 20.x version of Node.js.

Note: If the engines#node section is not specified in package.json, the default Node.js version (Node.js 18.x) will be used.

Example Version Ranges and their Deployed Node.js Versions:

Version in package.jsonVersion deployed
20.x20.x
^20.0.020.x
>=20.0.020.x
>=18.x20.x
18.x18.x
^18.0.018.x
Was this article helpful?
^