stable v4.8.1 rc v5.0.0-rc.2

Ship with
confidence.

Deterministic, offline-first package management for JavaScript. Built for monorepos.

$ curl repo.yarnpkg.com/install | bash
// did you know 01 / 06

§ 01 — PRINCIPLES

Principled

Every decision in Yarn is measured against determinism, speed, usability, and monorepo-scale ergonomics.

01

Deterministic by default

A single yarn.lock produces byte-identical node_modules across machines, OSes, and CI providers. If it installs for you, it installs for them.

02

Plug'n'Play resolution

Skip node_modules entirely. PnP maps imports directly to the content-addressable cache — one install instead of thousands of file copies.

03

Offline-first cache

Every package you've ever resolved lives in the global cache. Subsequent installs — even in fresh clones — never hit the registry.

04

Workspaces, first-class

Monorepo primitives are native, not bolted on: topological builds, shared ranges, and constraint-based version policies across hundreds of packages.

05

Parallel everything

Fetch, link, and build stages run concurrently with bounded worker pools. yarn install saturates your CPU, not your patience.

06

Constraints engine

Enforce version policy declaratively across a monorepo. Prolog-style rules catch drift before it lands in main.

§ 02 — BENCHMARKS

Performant

We don't just say we're fast - we prove it to ourselves. Our team runs automated tests every hour to catch any regression.

Yarn 6.x others

Full cold install (install-full-cold) of the Gatsby fixture — no cache, no lockfile, no node_modules. Median of multiple runs.

// source: repo.yarnpkg.com/benchmarks/gatsby/summary

§ 03 — ADOPTION

Trusted

Yarn powers open-source projects and corporate repositories alike. You may have heard some of these names before?

fintech co.
social network
video platform
e-commerce
dev tools
cloud provider
ride-hailing
streaming