[BUG] package-lock is not cleaned up completely when workspace is removed #5463
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
After removing workspace from project and updating package-lock with npm install, some references to the removed workspace still exist
Expected Behavior
All references of the removed package are removed from package-lock
Steps To Reproduce
mkdir new-project cd new-project npm init -y npm init -y -w ./packages/a npm init -y -w ./packages/b
npm install
and check the package-lock againYou can see that
"packages/b"
part is still thereEnvironment
The text was updated successfully, but these errors were encountered: