What does npm i --package-lock-only
do exactly? The documentation is a tad shy on examples. https://docs.npmjs.com/cli/v6/configuring-npm/package-locks
I'm curious to know if I have older packages in my local node_modules
folder and no package-lock.json
file, will npm i --package-lock-only
generate a package-lock.json
according to the version in my local node_modules
folder or will it generate a package-lock.json
with newer package versions that is consistent with the semver ranges in the package.json
that's published in the npm registry.
npm i
create apackage-lock.json
if one doesn't exist (in addition to installingnode_modules
of course) ? – Ronnironnica