Read OSS

yarnpkg/yarn

4 articles

Prerequisites

01

Architecture Overview and Code Navigation

A comprehensive map of Yarn v1's codebase—directory structure, boot sequence, command routing, and the central Config hub.

02

The Install Pipeline — From `yarn install` to `node_modules`

A step-by-step walkthrough of Yarn's install pipeline—the steps array, integrity bailout, and command inheritance.

03

Package Resolution — Resolvers, the Lockfile, and Version Constraints

Deep dive into how Yarn decides which version of every package to install, including the resolver strategy pattern, lockfile parsing, and concurrency control.

04

Fetching, Caching, and the Offline Mirror

How Yarn downloads, caches, and integrity-verifies packages using five fetcher strategies and the RequestManager.