Skip to content

[BUG] v7 hidden lockfile/node_modules inconsistency, duplicated packages #1597

Description

@isaacs

Repro script:

# run in npm/cli repo
set -x
rm -rf node_modules package-lock.json
git checkout node_modules
rm node_modules/.gitignore node_modules/.package-lock.json
node . i --no-audit --ignore-scripts
node . ls @babel/core # apparently ok, only bundled under tap
rm node_modules/.package-lock.json # remove the hidden lockfile
node . ls @babel/core # ohno! babel cores all over the place!
  1. Why is the hidden lockfile being respected, when there are clearly package folders not found in its list?
  2. Why is Arborist installing @babel/core v7.11 when the only thing depending on it has a copy from the bundle?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions