corepack install

Category: Node.js & npm/yarn

corepack install

Install the manager pinned in package.json

Reads the packageManager field and installs that package manager into the corepack cache without activating it project-wide. CI pipelines run this after checkout so builds use the exact manager version. The -g flag installs managers globally instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.