yarn
Installation
SKILL.md
Yarn
Yarn (Berry) is a modern package manager. It introduced Plug'n'Play (PnP) to eliminate node_modules and support Zero Installs.
When to Use
- Monorepos: Yarn Workspaces are robust and feature-rich (Constraints, plugins).
- Speed: PnP is faster than node_modules linking.
- Correctness: Strict phantom dependency checks prevent requiring packages you didn't list.
Quick Start
corepack enable
yarn set version stable
yarn init -2