Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

yarn

> 包管理
Open source

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

41.5K stars0 likes13 views
WebsiteGitHub

About

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

> ## ℹ️ Important note > > This repository holds the sources for Yarn 1.x (latest version at the time of this writing being 1.22). New releases (at this time the 3.2.3, although we're currently working on our next major) are tracked on the [yarnpkg/berry](https://github.com/yarnpkg/berry) repository, this one here being mostly kept for historical purposes and the occasional hotfix we publish to make the migration from 1.x to later releases easier. > > If you hit bugs or issues with Yarn 1.x, we strongly suggest you [migrate](https://yarnpkg.com/getting-started/migration) to the latest release - at this point they have been maintained longer than 1.x, and many classes of problems have already been addressed there. By using the [`nodeLinker` setting](https://yarnpkg.com/configuration/yarnrc#nodeLinker) you'll also have the choice of how you want to install your packages: node_modules like npm, symlinks like pnpm, or manifest files via [Yarn PnP](https://yarnpkg.com/features/pnp). ---

Fast, reliable, and secure dependency management.

--- **Fast:** Yarn caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs. **Reliable:** Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarn is able to guarantee that any installation that works on one system will work exactly the same on another system. **Secure:** Yarn uses checksums to verify the integrity of every installed package before its code is executed. ## Features * **Offline Mode.** If you've installed a package before, then you can install it again without an internet connection. * **Deterministic.** The same dependencies will be installed in the same exact way on any machine, regardless of installation order. * **Network Performance.** Yarn efficiently queues requests and avoids request waterfalls in order to maximize network utilization. * **Network Resilience.** A single request that fails will not cause the entire installation to fail. Requests are automatically retried upon failure. * **Flat Mode.** Yarn resolves mismatched versions of dependencies to a single version to avoid creating duplicates. * **More emojis.** 🐈 ## Our supports ### [Gold sponsors](https://opencollective.com/yarnpkg)
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.
## Installing Yarn Read the [Installation Guide](https://yarnpkg.com/en/docs/install) on our website for detailed instructions on how to install Yarn. ## Using Yarn Read the [Usage Guide](https://yarnpkg.com/en/docs/usage) on our website for detailed instructions on how to use Yarn. ## Contributing to Yarn The 1.x codebase is fairly old and will only accept security fixes. For new features or bugfixes, please see our new [repository](https://github.com/yarnpkg/berry) and its [contribution guide](https://yarnpkg.com/advanced/contributing). ## Prior art Yarn wouldn't exist if it wasn't for excellent prior art. Yarn has been inspired by the following projects: - [Bundler](https://github.com/bundler/bundler) - [Cargo](https://github.com/rust-lang/cargo) - [npm](https://github.com/npm/cli) ## Credits Thanks to [Sam Holmes](https://github.com/samholmes) for donating the npm package name!

Issues· 2055 open

View all issuesOpen on GitHub
  • #4746

    Add unpublish command

    cat-featureUpdated Jul 15, 2026
  • #6066

    Add option to change version of all workspaces together

    triagedUpdated Jul 13, 2026
  • #1632

    Support npm_config_cache environment variable

    cat-compatibilityUpdated Jun 23, 2026
  • #9237

    Tweet

    Updated Jun 14, 2026
  • #9062

    Lifecycle planning / end-of-life?

    Updated Jun 9, 2026
  • #6829

    Dependency Dashboard

    triagedUpdated May 13, 2026
  • #7248

    'Can't answer a question unless a user TTY'

    Updated May 7, 2026
  • #8099

    Error code question info - Command failed with exit code 3221226525.

    Updated Apr 27, 2026
  • #9210

    `DeprecationWarning` for `url.parse` in Node.js 24

    Updated Apr 16, 2026
  • #4667

    Exits with code 1 on SIGTERM without waiting for child

    Updated Apr 12, 2026

> Tags

JavaScriptjavascriptnpmpackage-manageryarn

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image