Skip to content

Node.js Versions

Renovate can upgrade the Node.js runtime used by your project so that you're using the latest bug fixes, performance improvements, security mitigations, etc. that meet your project's unique needs.

File Support

Renovate is capable of managing the Node.js version in the following files:

How It Works

Node.js renovation in package.json > engines and in .nvmrc is enabled by default, if your existing version is pinned.

To enable .travis.yml renovation, you must:

  1. Enable Travis renovation explicitly by setting the following Renovate configuration: "travis": { "enabled": true }
  2. Optionally, configure a support policy (As documented below).

When Renovate processes your project's repository it will look for the files listed above and submit a single pull request that upgrades all Node.js versions simulteniously.

Configuring Support Policy

Renovate supports a supportPolicy option that can be passed the following values and associated versions (current as of December 2017):

Default: lts

supportPolicy versions description
lts 4,6,8 All releases classified as LTS, including in maintenance
active 6,8,9 All releases classified as active and not maintenance
current 9 The latest Node.js classified as "current"
lts_active 6,8 All releases classified as Active LTS and not maintenance
lts_latest 8 The latest LTS release

The version numbers associated with each support policy will be updated as new versions of Node.js are released, moved to LTS or maintenance, etc.

For example, to instruct Renovate to upgrade your project to the latest Long-term Support release, you can use the following configuration:

"supportPolicy": ["lts_latest"]

It's best to define this support policy inside the node configuration object so that it is applied to all Node.js-related files.

For additional language support see the supportPolicy documentation.