Documentación offline pnpm main

pnpm with

main Documentación oficial Licencia MITDescargado el 2026-08-02

En esta página

Added in: v11.0.0

Run pnpm at a specific version (or the currently running one) for a single invocation, ignoring the packageManager and devEngines.packageManager fields of the project's manifest.

pnpm with <version|current> <args...>

The downloaded pnpm is installed using the same mechanism as pnpm self-update and cached in the global virtual store for reuse on subsequent runs.

Examples#

Run the globally installed pnpm, ignoring the version pinned in the manifest:

pnpm with current install

Run a specific version:

pnpm with 11.0.0-rc.1 install

Use a dist-tag:

pnpm with next install

pmOnFail#

If you want to permanently skip the packageManager / devEngines.packageManager check (for example, because version management is handled by asdf, mise, Volta, or a similar tool), set the pmOnFail setting to ignore instead of running every command through pnpm with:

yaml title="pnpm-workspace.yaml" pmOnFail: ignore