GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Dedupe LRU-Cache Dependency · Issue #7350 · npm/cli

Dedupe LRU-Cache Dependency #7350

New issue
Copy link
New issue
Copy link
Closed
Closed
Dedupe LRU-Cache Dependency#7350
Copy link

Description

@H4ad
H4ad
opened on Apr 7, 2024
Issue body actions

The current output of npm ls lru-cache for this repo:

[email protected] /home/h4ad/Projects/opensource/performance-analysis/npm-cli
├─┬ @npmcli/[email protected]
│ └── [email protected]
├─┬ @npmcli/[email protected]
│ ├─┬ @commitlint/[email protected]
│ │ └─┬ @commitlint/[email protected]
│ │   └─┬ [email protected]
│ │     └─┬ [email protected]
│ │       └─┬ [email protected]
│ │         └─┬ [email protected]
│ │           └── [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └─┬ [email protected]
│       └─┬ [email protected]
│         └─┬ [email protected]
│           └── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └─┬ @npmcli/[email protected]
│   ├─┬ @npmcli/[email protected]
│   │ └─┬ @npmcli/[email protected]
│   │   └── [email protected] deduped
│   ├─┬ @npmcli/[email protected]
│   │ └─┬ [email protected]
│   │   └─┬ [email protected]
│   │     ├─┬ [email protected]
│   │     │ └── [email protected] deduped
│   │     └── [email protected] deduped
│   ├─┬ [email protected]
│   │ └── [email protected]
│   ├─┬ [email protected]
│   │ └── [email protected] deduped
│   ├─┬ [email protected]
│   │ └─┬ [email protected]
│   │   └── [email protected] deduped
│   └─┬ [email protected]
│     └─┬ [email protected]
│       ├─┬ @sigstore/[email protected]
│       │ └─┬ [email protected]
│       │   └── [email protected] deduped
│       ├─┬ @sigstore/[email protected]
│       │ └─┬ [email protected]
│       │   └─┬ [email protected]
│       │     └── [email protected] deduped
│       └─┬ [email protected]
│         └── [email protected] deduped
├─┬ [email protected]
│ └─┬ @npmcli/[email protected]
│   └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
  ├─┬ @isaacs/[email protected]
  │ └─┬ @babel/[email protected]
  │   └─┬ @babel/[email protected]
  │     └── [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ @babel/[email protected]
        └─┬ @babel/[email protected]
          └── [email protected]

There are 4 different versions in the dependency tree, and during the npm run, at least two versions are loaded (one by semver and another for glob.

Activity

  1. wraithgar commented on Apr 24, 2024

    @wraithgar
    wraithgar
    on Apr 24, 2024
    Contributor
    More actions

    We don't really care about dev deps in this context, only production deps

    $ npm query '.prod#lru-cache'|json -a location
    node_modules/lru-cache
    node_modules/semver/node_modules/lru-cache

    semver is the only real outlier here, there is a PR to fix this. We can track that work over in node-semver.

    Reacted by Vinicius Lourenço
  2. wraithgar
    closed this as completedon Apr 24, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.