← All recipes
Moderne licensed

Upgrade to Node.js 20

Recipe IDorg.openrewrite.node.migrate.upgrade-node-20Artifact@openrewrite/recipes-nodejs

Migrate deprecated APIs for Node.js 20 compatibility. Addresses deprecations that are end-of-life in Node 20.

Composite recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.node.migrate.upgrade-node-20

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs

Definition

This recipe runs the following recipes in order.