Skip to content

[BUG] missing docs around package-lock.json inside the /node_modules/ dir #2521

@Pomax

Description

@Pomax

Current Behavior:

I can't for the life of me find something that lets me let you know about docs problems, as the official list of options has nothing relating to docs issues (only a way to open the docs site), so I'm filing this as an npm bug instead: running npm install generates a package-lock.json file not just in the project dir, but also in the ./node_modules/ dir.

The docs don't mention (1) that it'll do this, (2) what the purpose of this file is, and (3) why and how it's different (because it's about half the size as the regular package-lock.json file).

Expected Behavior:

No package-lock.json gets written to ./node_modules/

Steps To Reproduce:

Run npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 releasepr: needs documentationpull request requires docs before merging

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions