I use npm ci
to install npm modules and it install same package versions as in package-lock.json
And now I need to add npm module
for starting write unit tests, I use this command: npm i jest
I expect that it should add only jest dependencies
, but npm
update all out-of-date dependencies of 3-5 level dependencies in package-lock.json
I would like to do something like this npm ci --save-dev jest
How to install npm
package without changing old dependencies in package-lock.json
?
UPD For example, please clone this repo, after that use npm ci
and npm i empty-module
, if you look at git diff
you'll see a lot of changes of package-lock.json
file