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
Current Behavior:
When using workspaces, it seems
npm installonly detects the dependencies of a workspace package the very first time. Any subsequent changes to thedependenciesordevDependenciesof workspace package are ignored.Expected Behavior:
If a
dependencyordevDependencyis added/changed/removed from thepackage.jsonof workspace package then runningnpm installshould update thepackage-lock.jsonfile.Steps To Reproduce:
I made a repository here with instructions - https://github.com/sheepsteak/npm-workspaces-bug.
Environment: