Fast, reliable, and secure dependency management.
Yarn is a modern package manager split into various packages. Its novel architecture allows to do things currently impossible with existing solutions:
|All your environment variables, in one place. Stop struggling with scattered API keys, hacking together home-brewed tools, and avoiding access controls. Keep your team and servers in sync with Doppler.|
|Your app, enterprise-ready. Start selling to enterprise customers with just a few lines of code. Add Single Sign-On (and more) in minutes instead of months with WorkOS.|
|Datadog has been sponsoring the time from our lead maintainer for more than a year now. They also upgraded our account so that we can benefit from long-term telemetry (RFC).|
|Sysgears also sponsored time from very early in the 2.x development. In particular, their strong investment is the reason why Yarn 2 supports node_modules installs even better than it used to.|
|Netlify has been the historical provider for our website. Each time we got issues, they jumped to our help. Their live previews have been super helpful in our development process.|
|Cloudflare has also been a historical partner. While we don't directly mirror the npm registry anymore, they still power our website to make its delivery as fast as possible.|
|Algolia contributed a lot to our documentation over the years. They still power the search engine we use on both versions of the documentation.|
Consult the Installation Guide.
Consult the Migration Guide.
The documentation can be found at yarnpkg.com.
The API documentation can be found at yarnpkg.com/api.
On top of our classic integration tests, we also run Yarn every day against the latest versions of the toolchains used by our community - just in case. Everything should be green!
Consult the Contributing Guide.
Clone this repository, then run the following commands:
How it works
After building the CLI your global
yarn will immediately start to reflect your local changes. This is because Yarn will pick up the
yarnPath settings in this repository's
.yarnrc.yml, which is configured to use the newly built CLI if available.
Works out of the box!
Note that no other command is needed! Given that our dependencies are checked-in within the repository (within the
.yarn/cache directory), you don't even need to run
yarn install. Everything just works right after cloning the project and is guaranteed to continue to work ten years from now 🙂
Those plugins typically come bundled with Yarn. You don't need to do anything special to use them.
exec:protocol within your dependencies.
file:protocol within your dependencies.
portal:references as dependencies.
yarn npm login,
yarn npm publish, ...).
yarn workspaces foreachcommand.
Plugins can be developed by third-party entities. To use them within your applications, just specify the full plugin URL when calling
To create your own plugin, please refer to the documentation.
The following packages are generic and can be used in a variety of purposes (including to implement other package managers, but not only):
node_modulestree builder and hoister.
The following packages are meant to be used by Yarn itself, and probably won't be useful to other applications: