Increase Node.js engine version
ProprietaryRaises the lower bound of the engines.node version range in package.json to the specified Node.js version, performing a hard cutover that drops support for older, end-of-life versions (22.x → 24.x, >= 22 → >= 24). The original constraint style is preserved where possible and the version is never lowered.
org. openrewrite. node. migrate. increase-node-engine-versionRequired
The Node.js major version to allow, e.g. 20 or 22.
mod run . --recipe= org. openrewrite. node. migrate. increase-node-engine-version \
-P version=22Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.