← All recipes
Moderne licensed

Upgrade to Node.js 22

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

Migrate deprecated APIs for Node.js 22 compatibility. Addresses Node 22 runtime deprecations and deprecations from earlier versions.

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-22

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.