Skip to main content
Version: 12.x

Installation

Prerequisites

pnpm 12 is a native executable and does not require Node.js after it is installed. Installing it through npm requires Node.js 22.13 or newer.

pnpm 12 is the current release line — the latest tag on npm points at it, so the commands below install pnpm 12 without naming a version.

Supported platforms

pnpm 12 ships a prebuilt binary for each of these targets:

Operating systemArchitectures
Linux (glibc)x64, arm64, riscv64, ppc64le, s390x
Linux (musl)x64, arm64
macOSarm64, x64
Windowsx64, arm64
FreeBSDx64
Androidarm64, x64

FreeBSD, ppc64le, s390x, RISC-V, and Android were added in v12.4.0. On a target with no binary, install the JavaScript pnpm 11 instead.

Using pnpm

If you already have pnpm v11.10.0 or newer, update directly to pnpm 12:

pnpm self-update

Inside a project that pins pnpm through the packageManager field, self-update only updates that pin instead of installing pnpm globally.

Using a standalone script

You may install pnpm even if you don't have Node.js installed, using the following scripts.

On Windows

warning

Sometimes, Windows Defender may block our executable if you install pnpm this way.

Due to this issue, we currently recommend installing pnpm using npm on Windows.

Using PowerShell:

Invoke-WebRequest https://get.pnpm.io/install.ps1 -UseBasicParsing | Invoke-Expression

On Windows, Microsoft Defender can significantly slow down installation of packages. You can add pnpm to Microsoft Defender's list of excluded folders in a PowerShell window with administrator rights by executing: