Yarn Classic manages JavaScript project dependencies with caching, lockfiles, and checksum verification. It installs packages from the npm registry while keeping installs reproducible across machines.
Overview
Yarn is a dependency management tool for JavaScript projects, focused on fast, reliable, and secure installs. It downloads and records packages so teams can install the same dependency graph consistently on different machines.
Caching avoids re-downloading packages already fetched, and install work is parallelized where possible. A concise lockfile format plus deterministic install logic is intended to make successful installs repeatable. Checksums verify package integrity before executed code is trusted.
Yarn supports offline installs when a package was previously cached, queued networking to reduce waterfalls, automatic retries on failed requests, and flat resolution that collapses conflicting dependency versions when configured. The tool can consume packages published to npm while keeping familiar workflow patterns.
Yarn 1.x (Classic) is maintained in this lineage for migration support, while newer Yarn releases are developed separately. Installation and usage guides are available on the Yarn Classic website.
Key features
- Dependency install caching
- Deterministic lockfile installs
- Package integrity checksums
- Offline mode for cached packages
- Parallelized install operations
- Network request queuing and retries
- Flat mode dependency resolution
- npm registry package compatibility
Use cases
- Installing JavaScript project dependencies
- Reproducible CI and team installs
- Offline installs from cache
- Managing monorepo or app packages
- Migrating from Yarn 1.x workflows