How to install PNPM?

NicolasBrondinBernard

Author
@NicolasBrondinBernard

It is possible to install PNPM directly from NPM, or through dedicated installation scripts for each OS!

Article published on 03/03/2025, last updated on 10/08/2026

PNPM (Performant Node Package Manager) is a fast and efficient package manager for JavaScript. It offers better performance and optimized dependency management compared to npm and Yarn. Here's how to quickly install it on your machine.

Installing pnpm

Installing with npm

If you already have npm installed, the simplest method to install PNPM is to use the following command:

$> npm install -g pnpm

This installs PNPM globally, allowing you to use it on all your projects.

Installing via an official script

You can also install PNPM via an online script:

$> curl -fsSL https://get.pnpm.io/install.sh | sh -

On Windows (PowerShell):

$> iwr https://get.pnpm.io/install.ps1 -useb | iex

Verifying the installation

After installation, make sure PNPM is working properly by running:

$> pnpm -v

This will display the installed version of PNPM.

Updating PNPM

To keep PNPM up to date with the latest available version, use the recommended command:

$> pnpm self-update
Progress: resolved 1, reused 0, downloaded 1, added 1, done

Finished reading this article?
Our newsletter

No spam. Only free content, news, and ever more resources to level up your skills!

Join +1500 developers

Comments (0)

to leave a comment

No comments yet