The easiest way to install pnpm is using npm:
npm install -g pnpm
Other solutions are:
Using a standalone script:
curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node
On Windows (PowerShell):
(Invoke-WebRequest 'https://raw.githubusercontent.com/pnpm/self-installer/master/install.js').Content | node
npx pnpm add -g pnpm
Once you first installed pnpm, you can upgrade it using pnpm (but see the NOTE below):
pnpm add -g pnpm
NOTE! There are some issues with
pnpm add -g <pkg> on some systems. Any help is appreciated.
Do you wanna use pnpm on CI servers? See: Continuous Integration.