Official docs outline
14 sections- Getting started
Installing Yarn and basic usage with Corepack.
- Installation and setup
Migrating from Yarn Classic and the layout of a modern Yarn project.
- Manifest (package.json)
The package.json manifest fields Yarn supports, such as dependencies, resolutions and packageManager.
- Yarnrc settings
Configuration keys in .yarnrc.yml.
- Protocols
Dependency protocols such as npm, git, workspace, patch.
- Workspaces
Workspaces for monorepos, the workspace: protocol and running commands across workspaces.
- Plug'n'Play
Strict resolution without node_modules.
- Caching and zero-installs
The offline cache, cache location and committing the cache for zero-installs.
- Constraints
Enforcing rules across workspaces.
- Release workflow
Deferred versioning and release bumps.
- Patching
Patching dependencies with the patch: protocol and yarn patch.
- Security and audit
Auditing dependencies and the checksums that protect installs.
- Plugins
Yarn plugins that add commands, resolvers and fetchers.
- CLI reference
Reference for Yarn commands such as add, install, up, dlx and workspaces foreach.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
Versions and support
4 release lines| Line | Released | Latest | Support |
|---|---|---|---|
| 4 | Oct 22, 2023 | 4.18.1 | Supported |
| 3 | Jul 26, 2021 | 3.8.7 | Ended Dec 4, 2024 |
| 2 | Jul 9, 2020 | 2.4.3 | Ended Sep 6, 2021 |
| 1 | Sep 5, 2017 | 1.22.22 | Supported |
Source: endoflife.date