Skip to content

Include Node.js version in cache key #1171

Open

Description

@clintonb

Description:
The Node.js version should be included in the cache key. The major version number, (e.g., 22 in 22.12) should be used to avoid unnecessary invalidation when upgrading to patch or minor versions.

This is similar to #1008.

Justification:
Some dependencies need to be rebuilt for specific Node versions. Reusing the cache for an older version results in dependency installation failures.

Are you willing to submit a PR?
Yes.

Activity

  1. v-gowridurgad commented on Dec 16, 2024

    @v-gowridurgad
    Contributor

    Hello @clintonb ,
    Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.


  2. tpoisseau commented on May 13, 2025

    @tpoisseau

    Any new on this issue ?
    In monorepo with packages to test with different Node.js, applications not all with the same Node.js version, the actual generated key lead to dependencies which need to be rebuilt each time.

  3. ayeshasaeed665 commented on Nov 3, 2025

    @ayeshasaeed665

    Any new update on the issue?

  4. Kunal-kumar2 commented on Jan 27, 2026

    @Kunal-kumar2

    Any new update on the issue?

  5. deleted a comment from beanscg on Jun 10, 2026
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

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions