talira

Fast, disk space efficient package manager

open sourceMITself-hostablefree

pnpm is a Node.js package manager that stores every package file once in a content-addressable store and links them into node_modules, so 100 projects using lodash don't keep 100 copies. It is strict (packages see only declared dependencies), deterministic with pnpm-lock.yaml, has first-class workspace support for monorepos, and can manage Node.js versions.

Ways to install

Problems it solves

  • node_modules folders across my projects take up 50GB
  • npm install is slow in CI and on my laptop
  • the same package gets downloaded again for every project
  • code imports packages it never declared and it works by accident
  • manage a JavaScript monorepo with many packages
  • phantom dependencies break when we deploy
  • a deterministic lockfile for our Node workspace
  • switch Node.js versions using the package manager itself
  • yarn workspaces got too slow for our repo

Features

  • content-addressable store
  • strict node_modules
  • workspaces
  • pnpm-lock.yaml
  • Node.js version management
  • experimental Rust port (pacquet)

Capabilities

Has a command line toolplan not known

What people say

  • README quotes the Rush team: Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day source

Alternatives

The same job

These do what pnpm does.

  1. Bun Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
  2. Yarn Safe, stable, reproducible projects
  3. npm The package manager for JavaScript
  4. uv An extremely fast Python package and project manager, written in Rust.

Compare pnpm with the top 3