# Yarn

[BASE product page](<https://base.akulich.dev/en/library/yarn/>) · [Resource](<https://github.com/yarnpkg/berry>)

ID: yarn · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A JavaScript package manager with workspaces and dependency constraints: it helps manage reproducible installations and large monorepos\.

## Type

Build / code quality tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/yarn/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/yarn/#resource-access>)

Package manager, workspaces, and constraints locally under BSD\-2\-Clause\.

## [Paid features and costs](<https://base.akulich.dev/en/library/yarn/#resource-access>)

Private registries, hosting, and external services are paid for separately\.

## [Access and limitations](<https://base.akulich.dev/en/library/yarn/#resource-access>)

Package manager, workspaces, and constraints locally under BSD\-2\-Clause\. Private registries, hosting, and external services are paid for separately\.

## [Use cases](<https://base.akulich.dev/en/library/yarn/#resource-tasks>)

- Manage monorepo packages and dependencies
- Check reproducible installation and required workspace dependency constraints

## Category IDs

- infrastructure
- quality

## Subcategory IDs

- infrastructure\.developer
- quality\.review

## Tags

- Yarn
- build
- Development

## Also known as

- yarnpkg/berry
- yarn
- yarn\-package\-manager
- yarnpkg/yarn
- Yarn Berry

## [Selection purpose](<https://base.akulich.dev/en/library/yarn/#resource-selection>)

Manage monorepo packages and dependencies

## [Choose this when](<https://base.akulich.dev/en/library/yarn/#resource-selection>)

- Manage monorepo packages and dependencies
- Check reproducible installation and required workspace dependency constraints

## [Requirements](<https://base.akulich.dev/en/library/yarn/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/yarn/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/yarn/#resource-faq>)

### What can you use for free in Yarn?

Package manager, workspaces, and constraints locally under BSD\-2\-Clause\.

### What additional costs might arise with Yarn?

Private registries, hosting, and external services are paid for separately\.

### What terms of use matter for Yarn?

BSD\-2\-Clause for current Yarn Berry code; Yarn Classic is a separate historical code line\.

### How do you get started with Yarn?

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\.

### Does Yarn always operate without node\_modules?

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\.

## Sources for the selection guide

- [https://github\.com/yarnpkg/berry](<https://github.com/yarnpkg/berry>)
- [https://raw\.githubusercontent\.com/yarnpkg/berry/HEAD/README\.md](<https://raw.githubusercontent.com/yarnpkg/berry/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/yarnpkg/berry/HEAD/LICENSE\.md](<https://raw.githubusercontent.com/yarnpkg/berry/HEAD/LICENSE.md>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://yarnpkg\.com/features/pnp](<https://yarnpkg.com/features/pnp>)

## [Possible workflow](<https://base.akulich.dev/en/library/yarn/#resource-scenario>)

Manage monorepo packages and dependencies\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A repository, package manifests, and configuration\.
- A compatible runtime and the target build command\.

## Steps

1. Define workspaces and dependencies for related project packages\.
2. Check reproducible installation and required workspace dependency constraints\.
3. Add the workflow to scripts or CI with a clear report\.

## Check your result

- A clean copy of the project reproduces the result\.
- Errors produce a nonzero exit code and clear diagnostics\.

## [License](<https://base.akulich.dev/en/library/yarn/#resource-license>)

BSD\-2\-Clause for current Yarn Berry code; Yarn Classic is a separate historical code line\.

## License explanations for the specified scope

### Custom license — this product's terms apply

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\.

## [Sources](<https://base.akulich.dev/en/library/yarn/#resource-sources>)

- [Official source](<https://github.com/yarnpkg/berry>)
- [Official source](<https://raw.githubusercontent.com/yarnpkg/berry/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/yarnpkg/berry/HEAD/LICENSE.md>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://yarnpkg.com/features/pnp>)

## Editorial review date

2026\-10\-06

## Editorial review scope

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\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
