Yarn
yarnpkg.com
- Free plan
- Windows
- macOS
- Linux
What Yarn is
Yarn is a package manager and project manager for JavaScript projects, from individual work to monorepos. It resolves dependencies, maintains lockfiles, and supports workspaces that install and link packages within the same project. Modern Yarn uses Plug'n'Play by default, creating a Node.js loader file instead of a typical node_modules folder; users can choose node_modules or pnpm-style symlink installs instead. Yarn caches installed packages for reuse across projects on the same machine. Its offline mirror and zero-installs workflow can keep cached packages in a repository and reduce dependence on the npm registry. Plugins can add resolvers, fetchers, linkers, commands, and lifecycle hooks. Generated editor SDKs and settings support VSCode, Vim, Emacs, and Neovim. Yarn runs on Linux, macOS, and Windows. It is free and open source, with no paid plans or usage limits stated. Its documentation identifies React Native and Expo as requiring typical node_modules installs.
Who it suits
Yarn suits JavaScript developers working on anything from a simple project to an enterprise monorepo. Its workspaces, caching, and install-mode choices can help teams manage packages across projects.
Good to know, and what to watch
- Supports dependency resolution and lockfiles
- Workspaces support monorepo workflows
- Cached packages can be reused across projects
- Free and available on Linux, macOS, and Windows
- React Native and Expo require node_modules installs
- Audits do not run during installation by default
Plans
Every plan and priceYarn
Free plan
Getting started
- Open the Yarn website
- Install Yarn on Linux, macOS, or Windows
- Choose Plug’n’Play, node_modules, or pnpm-style linking
- Configure a project workspace and lockfile
- Add packages from npm, Git, local, or other supported references
- Generate editor SDKs for your development tools
Limits to check
Yarn has no paid plans or stated usage limits. React Native and Expo require typical node_modules installs, and postinstall scripts do not run by default from Yarn 4.14.
The verdict
Yarn offers workspace and dependency management alongside several installation strategies and offline workflows. Consider its documented compatibility limit for React Native and Expo, and run audits separately when needed.
Questions people ask
Is Yarn free?
Yes. Yarn is listed as free as an open-source package manager, with no paid plans or stated usage limits.
Which operating systems does Yarn support?
Yarn runs on Linux, macOS, and Windows.
What installation strategy does modern Yarn use?
Plug’n’Play is the default and creates a Node.js loader file instead of a typical node_modules folder. You can replace it with node_modules or pnpm-style symlink installs.
Does Yarn support monorepos?
Yes. Workspaces install and link packages within the same project, supporting monorepo workflows.
Does Yarn run security audits automatically?
No. Audits are not run during yarn install by default; you can run yarn npm audit separately.
Who maintains Yarn?
Yarn describes itself as an independent open-source project tied to no company, with its contributor community defining the roadmap.
What the maker publishes
- Alternative install modes
- Yarn PnP can be replaced with node_modules installs or pnpm-style symlink-based installs. source
- Audience
- Yarn says it serves simple projects and industry monorepos, including open-source developers and enterprise users. source
- Caching
- Yarn caches installed packages by default and shares them across projects on the same machine. source
- Compatibility limit
- The Yarn PnP documentation identifies React Native and Expo as requiring typical node_modules installs. source
- Dependency resolution
- Yes source
- Editor integrations
- Yarn provides generated editor SDKs and settings for tools including VSCode, Vim, Emacs, and Neovim. source
- Free plan
- Yes source
- Hardened mode
- In public GitHub pull requests, Yarn enables hardened mode by default to check lockfile resolutions and metadata against the remote registry; the checks can slow installs. source
- Install script behavior
- Since Yarn 4.14, postinstall scripts do not run by default and must be enabled globally or by package. source
- Lockfile support
- Yes source
- Maintainer model
- Yarn describes itself as an independent open-source project tied to no company, with its contributor community defining the roadmap. source
- Offline and zero installs
- Yarn documents an offline mirror and zero-installs workflow that can keep cached packages in the repository and reduce reliance on the npm registry. source
- Offline installation
- Yes source
- Package formats
- npm packages; tarballs; local,Git,link,patch,portal,and workspace references source
- Plugins
- Plugins can add resolvers, fetchers, linkers, CLI commands, and lifecycle hooks. source
- Plug'n'Play
- Yarn PnP is the default installation strategy in modern Yarn and generates a Node.js loader file instead of a typical node_modules folder. source
- Private registry auth
- Yes source
- Purpose
- Yarn is a package manager that also describes itself as a project manager. source
- Security audits
- Yarn does not run audits during yarn install by default; users can run yarn npm audit, which by default covers direct dependencies in the current workspace. source
- Supported platforms
- Linux,macOS,Windows source
- Workspaces
- Workspaces let Yarn install and link packages in the same project, supporting monorepo workflows. source
- Workspace support
- Yes source
Checked against the maker's pages on 30 Sept 2026.