If i manually add a package to package.json
and then run npm install
, my package-lock.json
gets updated with that new package's dependencies.
However, if i then manually delete that package from package.json
from npm install
, that package's dependencies are not removed from package-lock.json
.
So - package-lock.json
only gets modified when adding/updating packages in package.json
? Not when removing?
package.json
npm prune
package-lock.json
and runnpm install
, but i'm not really looking for a solution - i'm looking for an understanding: whypackage-lock.json
doesn't get updated?