Why use Corepack?

Corepack exists at the top of the code tooling hierarchy of local development.

In the case of Node.js, the default package manager (npm) installs packages by copying the files each time you install them, copying them into the program you are making. This wastes space on your machine. To fix this, use pnpm, which installs the packages to a central folder on your computer then links the package into the project folder. These links only exist for your local repository and are not uploaded to GitHub (pnpm or some other tool will likely add its folder into the list in the .gitignore file).

Corepack is experimental. To enable, install Node.js, then open an Admin Terminal, navigate to your project directory, and run corepack enable and follow the rest of the instructions in the link above, while referring to the Corepack installation helper.