Thanks to visit codestin.com
Credit goes to github.com

Skip to content

minimumReleaseAge fails to fallback when a new major version is released #10100

@nissy-dev

Description

@nissy-dev

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.18.3

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

$ echo "minimumReleaseAge: 20160" > pnpm-workspace.yaml

// install packages without major version release
$ pnpm install eslint
Already up to date
Progress: resolved 85, reused 85, downloaded 0, added 0, done

dependencies:
+ eslint ^9.36.0

// install packages with major version release
$ pnpm install @kintone/rest-api-client
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @kintone/rest-api-client@latest while fetching it from https://registry.npmjs.org/

The latest release of @kintone/rest-api-client is "6.0.0". Published at 10/15/2025 4:25:57 PM

If you need the full list of all 138 published versions run "$ pnpm view @kintone/rest-api-client versions".

ref: https://www.npmjs.com/package/eslint
ref: https://www.npmjs.com/package/@kintone/rest-api-client

Describe the Bug

When minimumReleaseAge is configured (e.g. minimumReleaseAge: 1440), pnpm should skip versions that were published recently (less than 24 hours ago).
However, if a new major version of a package is published recently and therefore excluded by minimumReleaseAge, pnpm fails to fallback to the latest version of the previous major release.

Expected Behavior

Package versions on the registry

Version Published Notes
[email protected] 3 days ago Old major version
[email protected] 3 hours ago New major version

Expected behavior:

  • pnpm install foo should install [email protected], since 2.0.0 is too new (published < 24 hours ago).

Actual behavior:

  • pnpm fails with “ERR_PNPM_NO_MATCHING_VERSION”

Which Node.js version are you using?

22.18.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions