Search for a command to run...
Package manager for JavaScript projects that doubles as a project manager. Handles installing, updating, configuring, and removing dependencies while supporting everything from single-package apps to large monorepos. Focuses on speed, correctness, security, and developer experience.
First package manager with native workspace support, later adopted by tools like Lerna. Maintained as a fully independent open-source project with a contributor-driven roadmap, used by projects such as Babel and Jest. Unlike package managers that delegate non-install commands to npm, Yarn reimplements all commands for full control over stability and behavior.
Key capabilities:
Teams adopt Yarn for monorepos with core packages and add-ons, multi-package publishing without cross-repo PRs, and strict dependency boundaries. CI pipelines benefit from focused installs that only pull in needed workspaces and from offline mirrors that remove reliance on the npm registry. Semantic error messages help developers quickly fix ghost dependencies and peer dependency issues before they surface in production.