Closed
Description
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