Skip to content

[BUG] package-lock.json not updated with new dependencies of a workspace package #1984

Closed
@sheepsteak

Description

@sheepsteak

Current Behavior:

When using workspaces, it seems npm install only detects the dependencies of a workspace package the very first time. Any subsequent changes to the dependencies or devDependencies of workspace package are ignored.

Expected Behavior:

If a dependency or devDependency is added/changed/removed from the package.json of workspace package then running npm install should update the package-lock.json file.

Steps To Reproduce:

I made a repository here with instructions - https://github.com/sheepsteak/npm-workspaces-bug.

Environment:

  • OS: macOS Catalina 10.15.7 (19H2)
  • Node: 12.18.2
  • npm: 7.0.2

Metadata

Metadata

Labels

Bugthing that needs fixingRelease 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