Dev workflow and DevOps · Tool

Yarn

An alternative to npm, first released by Facebook in 2016, that installs JavaScript packages from the same registry with its own lockfile and extras.

Packages · Open source · updated

How it works

Yarn arrived when npm was slow and installs were unpredictable, and it introduced ideas npm later adopted: a lockfile (yarn.lock), parallel downloads and workspaces for monorepos. Yarn Classic (version 1) now only receives maintenance fixes, yet many older projects still use it.

Modern Yarn (often called Berry) is a rewrite. Its Plug'n'Play mode drops the node_modules folder in favour of a single map of where each package lives, which makes installs quick and dependency errors strict, and zero-installs lets a repository commit its package cache so a fresh clone runs without installing. Some tools need extra setup for Plug'n'Play, so Yarn can also use a normal node_modules folder.

Yarn pricing

Open source

Free (BSD 2-Clause).

Approximate, checked September 2026.What the other tools cost

Yarn vs the alternatives

More in Dev workflow and DevOps

Packages

All 21 Dev workflow and DevOps terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.