{"schemaVersion":1,"id":"yarn","name":"Yarn","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/yarn/","officialUrl":"https://github.com/yarnpkg/berry","isCatalog":false,"description":"A JavaScript package manager with workspaces and dependency constraints: it helps manage reproducible installations and large monorepos.","tasks":["Manage monorepo packages and dependencies","Check reproducible installation and required workspace dependency constraints"],"categoryIds":["infrastructure","quality"],"subcategoryIds":["infrastructure.developer","quality.review"],"tags":["Yarn","build","Development"],"aliases":["yarnpkg/berry","yarn","yarn-package-manager","yarnpkg/yarn","Yarn Berry"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Package manager, workspaces, and constraints locally under BSD-2-Clause.","paidUsage":"Private registries, hosting, and external services are paid for separately.","license":"BSD-2-Clause for current Yarn Berry code; Yarn Classic is a separate historical code line.","selectionGuide":{"purpose":"Manage monorepo packages and dependencies","chooseWhen":["Manage monorepo packages and dependencies","Check reproducible installation and required workspace dependency constraints"],"considerInstead":[],"requirements":["With PnP, each workspace must declare used packages and tools in its own dependencies. A TypeScript dependency only in the root workspace does not make tsc available to every other workspace."],"limitations":["Costs and limits of free use: Private registries, hosting, and external services are paid for separately.","Terms of use: BSD-2-Clause for current Yarn Berry code; Yarn Classic is a separate historical code line.","The official PnP page identifies React Native/Expo as requiring ordinary node_modules. PnP migration may reveal previously hidden undeclared dependencies; it is not a guaranteed installation-mode replacement for every project."],"faq":[{"question":"What can you use for free in Yarn?","answer":"Package manager, workspaces, and constraints locally under BSD-2-Clause."},{"question":"What additional costs might arise with Yarn?","answer":"Private registries, hosting, and external services are paid for separately."},{"question":"What terms of use matter for Yarn?","answer":"BSD-2-Clause for current Yarn Berry code; Yarn Classic is a separate historical code line."},{"question":"How do you get started with Yarn?","answer":"Define workspaces and dependencies for related project packages. Check reproducible installation and required workspace dependency constraints. Add the workflow to scripts or CI with a clear report."},{"question":"Does Yarn always operate without node_modules?","answer":"No. PnP is the default in modern releases, but .yarnrc.yml can set nodeLinker: node-modules. The documentation also notes automatic PnP disabling when migrating an existing Yarn Classic project."}],"related":[],"sources":["https://github.com/yarnpkg/berry","https://raw.githubusercontent.com/yarnpkg/berry/HEAD/README.md","https://raw.githubusercontent.com/yarnpkg/berry/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://yarnpkg.com/features/pnp"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Manage monorepo packages and dependencies.","inputs":["A repository, package manifests, and configuration.","A compatible runtime and the target build command."],"steps":["Define workspaces and dependencies for related project packages.","Check reproducible installation and required workspace dependency constraints.","Add the workflow to scripts or CI with a clear report."],"checks":["A clean copy of the project reproduces the result.","Errors produce a nonzero exit code and clear diagnostics."]},"sources":["https://github.com/yarnpkg/berry","https://raw.githubusercontent.com/yarnpkg/berry/HEAD/README.md","https://raw.githubusercontent.com/yarnpkg/berry/HEAD/LICENSE.md","https://www.open-source-tools.com/","https://yarnpkg.com/features/pnp"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Build / code quality tool","kind":"tool","pricingNote":"Package manager, workspaces, and constraints locally under BSD-2-Clause. Private registries, hosting, and external services are paid for separately.","notes":null,"labeledSources":[{"url":"https://github.com/yarnpkg/berry","label":"Official source"},{"url":"https://raw.githubusercontent.com/yarnpkg/berry/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/yarnpkg/berry/HEAD/LICENSE.md","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://yarnpkg.com/features/pnp","label":"Official source"}],"licenseGuides":[{"id":"custom","title":"Custom license — this product's terms apply","scope":null,"summary":"The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.","url":null}],"entryIds":[],"composition":null}