Skip to content

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

Closed

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

Activity

  1. added
    Bugthing that needs fixing
    Needs Triageneeds review for next steps
    Release 7.xwork is associated with a specific npm 7 release
    on Jan 21, 2021
  2. added
    Priority 2secondary priority issue
    and removed
    Needs Triageneeds review for next steps
    on Feb 2, 2021
  3. Pomax commented on Feb 13, 2021

    @Pomax
    Author

    Handy: but where is that found on the actual site? It's not under https://docs.npmjs.com/cli/v7/configuring-npm/package-json nor is it under https://docs.npmjs.com/cli/v7/using-npm/config, so even though it looks like that information exists, it's basically not discoverable.

  4. valtlai commented on Feb 25, 2021

    @valtlai

    It seems it has now been published on the actual site: https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#hidden-lockfiles

  5. Pomax commented on Feb 25, 2021

    @Pomax
    Author

    fantastic, then that closes this issue =)

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

    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