●Change8

Yarn

Dev Tools

πŸ“¦πŸˆ Active development trunk for Yarn βš’

Latest: @yarnpkg/cli/4.17.121 releases2 breaking changes3 common errorsView on GitHub

Release History

@yarnpkg/cli/4.17.11 fix
Jul 8, 2026

This patch release addresses an issue related to optional compat patch failures when using TypeScript 7.

@yarnpkg/cli/4.17.04 fixes1 feature
Jun 15, 2026

This 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 features
Jun 2, 2026

This 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 features
May 19, 2026

This 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 fix
Apr 17, 2026

This release primarily contains a bug fix to widen the EBADF fstat version gate to support Node 24.15+.

@yarnpkg/cli/4.14.0Breaking3 fixes3 features
Apr 16, 2026

This 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 features
Mar 3, 2026

This 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 feature
Nov 23, 2025

This 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 features
Nov 7, 2025

This 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 feature
Sep 23, 2025

This 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 fix
Sep 18, 2025

This release includes a fix for handling registries without publish times and busts the metadata cache.

@yarnpkg/cli/4.10.11 fix
Sep 18, 2025

This patch release addresses an issue related to publishing archives.

@yarnpkg/cli/4.10.01 fix3 features
Sep 18, 2025

This 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 fixes
Aug 26, 2025

This 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 features
Aug 20, 2025

This 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 features
Jun 3, 2025

Yarn 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 fixes
Apr 11, 2025

Yarn Berry 4.9.1 includes fixes for a pnpm install performance regression and resolves metadata filename ambiguities.

@yarnpkg/cli/4.9.03 features
Apr 9, 2025

Yarn 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 fix
Mar 30, 2025

This patch release (4.8.1) fixes a memory leak introduced in version 4.8.0.

@yarnpkg/cli/4.8.08 fixes5 features
Mar 28, 2025

This 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 feature
Mar 1, 2025

This 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 report

The "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 report

The "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

Subscribe to Updates

Get notified when new versions are released

RSS Feed