[BUG] v7 erroneously reports removal of packages #3574
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
After installing
aws-cdk
package, subsequentnpm
commands such asinstall
,prune
, etc. always report "removed 7 packages" and the following lines:All of the above directories still exist after each command, so they are not actually deleted.
This bug appears to have been introduced in v7.0.0 as it occurs in v7.20.1, v7.0.0, but not in v6.14.13.
Expected Behavior
No packages were removed and
npm
should report as such.Steps To Reproduce
Notice the output for all but the first
npm
commands report "removed 7 packages" for v7 but not for v6. Also, the following lines:Notice these reported directories were never created in v6, and in v7 they are never deleted (still exist every v7
npm
command) despite being reported as "REMOVE".Attached the output for the first 3
install
commands and the package files for v7:1.log
2.log
3.log
package.json.txt
package-lock.json.txt
Environment
The text was updated successfully, but these errors were encountered: