Here https://github.blog/2021-02-02-npm-7-is-now-generally-available/ it's said:
The lockfile v2 unlocks the ability to do deterministic and reproducible builds to produce a package tree.
But I wonder is it the default behavior now for npm 7? That is, if there is a package-lock.json
will npm install
update top-most packages with imprecise versions like ^1.0.0
from package.json
or it will always work the same way as yarn
does?
If npm install
is deterministic now, will I be right if I say that npm ci
is mostly an equivalent of
rm -rf node_modules && npm install
with some additional checks?