Install Corepack
mainCorepack is distributed with Node.js (versions 14.19.0 up to 25.0.0). To install the required Yarn and pnpm binaries on your path, run corepack enable.
If you need to install Corepack manually via npm (e.g., if it wasn't bundled with your Node.js installation), first uninstall any existing global Yarn and pnpm binaries to avoid conflicts, then install Corepack globally.