Yarn
Dev Toolsπ¦π Active development trunk for Yarn β
Release History
@yarnpkg/cli/4.17.11 fixThis patch release addresses an issue related to optional compat patch failures when using TypeScript 7.
@yarnpkg/cli/4.17.04 fixes1 featureThis release introduces support for package map generation and includes several documentation improvements and schema fixes related to yarnrc and dependency explanations.
@yarnpkg/cli/4.16.03 fixes3 featuresThis release introduces support for staged publishing and the yarn npm stage, alongside fixes for fstat workarounds across various Node versions and documentation updates.
@yarnpkg/cli/4.15.0Breaking5 fixes2 featuresThis release introduces configurable concurrency for the pnpm plugin and sets a new default for `npmMinimalAgeGate`. It also includes several bug fixes addressing Unicode paths, dependency name validation, and environment variable handling.
@yarnpkg/cli/4.14.11 fixThis release primarily contains a bug fix to widen the EBADF fstat version gate to support Node 24.15+.
@yarnpkg/cli/4.14.0Breaking3 fixes3 featuresThis release defaults `enableScripts` to false, requiring explicit opt-in for script execution, and includes fixes for Node 25.7+ compatibility and PnP watch mode issues.
@yarnpkg/cli/4.13.06 fixes5 featuresThis release introduces new features for publishing and configuration, alongside several bug fixes related to package resolution, auditing, and file system statistics handling. A dependency on `tar` was upgraded.
@yarnpkg/cli/4.12.02 fixes1 featureThis release introduces npm web login support and fixes an issue related to splitting arguments in the git clone command, along with a JSON Schema fix.
@yarnpkg/cli/4.11.02 fixes5 featuresThis release introduces support for the 'conditions' option in _resolveFilename, adds a new DURATION settings type, and improves catalog functionality. It also includes fixes related to publish JSON output and GitLab CI detection.
@yarnpkg/cli/4.10.33 fixes1 featureThis release focuses on bug fixes, including resolving OIDC publishing issues and npmMinimalAgeGate behavior, and enables postinstall scripts when using pnpm.
@yarnpkg/cli/4.10.21 fixThis release includes a fix for handling registries without publish times and busts the metadata cache.
@yarnpkg/cli/4.10.11 fixThis patch release addresses an issue related to publishing archives.
@yarnpkg/cli/4.10.01 fix3 featuresThis release introduces catalog support, new npm configuration options for age gating and package approval, and OIDC authentication support for CI/CD platforms. It also updates the underlying TypeScript version.
@yarnpkg/cli/4.9.42 fixesThis release primarily focuses on bug fixes, addressing issues related to peer-requirements hash validation and the behavior of the `yarn version pre*` command.
@yarnpkg/cli/4.9.35 fixes3 featuresThis release introduces new flags for `yarn npm publish` and improves platform compatibility by fixing libc detection. It also removes internal dependencies like lodash in favor of es-toolkit.
@yarnpkg/cli/4.9.26 fixes3 featuresYarn 4.9.2 updates Docusaurus to 3.7, deβduplicates the chalk dependency, adds hpagent for proxy support, and includes several bug fixes and improvements.
@yarnpkg/cli/4.9.12 fixesYarn Berry 4.9.1 includes fixes for a pnpm install performance regression and resolves metadata filename ambiguities.
@yarnpkg/cli/4.9.03 featuresYarn Berry 4.9.0 adds an experimental JavaScript zip parser for the PnP hook, introduces npm provenance support, and adds support for the `jsr:` protocol.
@yarnpkg/cli/4.8.11 fixThis patch release (4.8.1) fixes a memory leak introduced in version 4.8.0.
@yarnpkg/cli/4.8.08 fixes5 featuresThis release adds argument support to yarn init, new pnpm store configuration, version apply exact, and several bug fixes and performance improvements.
@yarnpkg/cli/4.7.08 fixes1 featureThis release primarily includes bug fixes, an improvement to the yarn init command, and an upgrade of ESLint to version 9 with required configuration migration.
Common Errors
QueryFailedError1 report"QueryFailedError" in Yarn often arises from incompatible or outdated dependencies within a monorepo, particularly when using Plug'n'Play (PnP). To resolve it, ensure that shared packages are correctly hoisted to the top-level node_modules and that all packages requiring those dependencies point to the hoisted versions. Consider updating Yarn to the latest version, clearing the Yarn cache, and regenerating the lockfile to reconcile dependency versions across the monorepo.
MaxRedirectsError1 reportThe "MaxRedirectsError" in yarn often occurs when yarn or npm encounters too many HTTP redirects while trying to download a package, typically due to misconfigured registries or network issues. To fix this, try clearing the yarn cache using `yarn cache clean`, and then explicitly set the correct registry using `yarn config set registry <your_registry_url>`, or try using npm with `npm config set registry <your_registry_url>`. If this doesn't work, investigate potential network proxy issues that might be causing the redirects.
UnsupportedProtocolError1 reportThe "UnsupportedProtocolError" in yarn often arises from outdated yarn versions or when yarn tries to access registries using unsupported protocols like `git+ssh`. Upgrade yarn to the latest version using `npm install -g yarn` or explicitly configure yarn to use `https` by setting the registry URL via `yarn config set registry https://registry.npmjs.org`. Also, inspect your `.yarnrc` file and dependencies' URLs for incorrect or git-based protocols and change these to `https`.
Related Dev Tools Packages
Empowering everyone to build reliable and efficient software.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Next generation frontend tooling. It's fast!
An extremely fast Python package and project manager, written in Rust.
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Subscribe to Updates
Get notified when new versions are released