Class PackageManagerExecutor

java.lang.Object
org.openrewrite.javascript.internal.PackageManagerExecutor

public final class PackageManagerExecutor extends Object
Locates and runs a Node.js package manager CLI (npm, yarn, pnpm, bun). Pre-configured instances are provided for each; find() caches the resolved executable path on first lookup. On Windows the executable is suffixed with .cmd (matching shell-utils.ts behaviour).