Skip to content

[Bug?]: npmMinimalAgeGate will not work on GithubPackages #7231

Description

@mrginglymus

Self-service

  • I'd be willing to implement a fix

Describe the bug

https://github.blog/changelog/2021-03-05-packages-time-has-been-dropped-from-npm-package-metadata-responses/

GitHub appears to be missing the metadata required for yarn's age-gate checking. This means any attempt to install a package from a NPM repository hosted by a GitHub instance will fail with "all versions are quarantined", which is technically correct given the information available, but unhelpful.

To reproduce

Install any package from a github npm registry.

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (22) x64 Intel(R) Core(TM) Ultra 7 165H
  Binaries:
    Node: 24.16.0 - C:\Users\collinsw\AppData\Local\Temp\xfs-c2e61610\node.CMD
    Yarn: 4.17.1 - C:\Users\collinsw\AppData\Local\Temp\xfs-c2e61610\yarn.CMD
    npm: 11.13.0 - C:\dev\nodejs\npm.CMD

Additional context

GitHub Enterprise Server 3.16.18

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions