corepack Command Examples

Zero-runtime-dependency package acting as bridge between Node projects and their package managers. More information: https://github.com/nodejs/corepack.

corepack enable

corepack enable --install-directory {{path/to/directory}}

corepack disable

corepack prepare {{package_manager}}@{{version}} --activate

corepack prepare

corepack {{npm|pnpm|yarn}} {{package_manager_arguments}}

corepack hydrate {{path/to/corepack.tgz}}

corepack {{subcommand}} --help