Skip to content

[BUG] npm install --package-lock-only does not imply --package-lock #2747

@ljharb

Description

@ljharb

Current Behavior:

put package-lock=false in .npmrc.

Run npm install --package-lock-only.

Expected Behavior:

a package-lock.json is generated.

Steps To Reproduce:

See above.

Environment:

  • npm: 7.5.4

This is a regression from #146 / v6.9.0.

(possibly related to #2358)

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingNeeds Discussionis pending a discussionRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions