You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] missing docs around package-lock.json inside the /node_modules/ dir #2521
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/
Activity
valtlai commentedon Feb 11, 2021
@Pomax, see docs/content/configuring-npm/package-lock-json.md#hidden-lockfiles
Pomax commentedon Feb 13, 2021
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.
valtlai commentedon Feb 25, 2021
It seems it has now been published on the actual site: https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#hidden-lockfiles
Pomax commentedon Feb 25, 2021
fantastic, then that closes this issue =)