When I add a package manually to my package.json
file and run npm install
, the dependencies of that new package are updated in my package-lock.json
.
However, if I then delete that package from package.json
and run npm install
, the dependencies of that package are not removed from package-lock.json
.
So, does package-lock.json
only get changed when adding or updating packages in package.json
, but not when removing them?