npm shrinkwrap
all
Lock down the dependencies of a package, creating a `npm-shrinkwrap.json` file. Similar to `package-lock.json` but intended for published packages.
More info →Examples (3)
Generate a `npm-shrinkwrap.json` file from the current `package-lock.json`
Run in production mode (excludes devDependencies)
npm shrinkwrap --productionForce recreate the shrinkwrap file even if it already exists
npm shrinkwrap --forcemade by @shridhargupta | data from tldr-pages