snippetbashTip
npm shrinkwrap — Lock down the dependencies of a package, creating a `npm-shrinkwrap.json` file. Similar to `package-
Viewed 0 times
thedowncommanddependenciesclinpm shrinkwrappackagelock
Problem
How to use the
npm shrinkwrap command: Lock down the dependencies of a package, creating a npm-shrinkwrap.json file. Similar to package-lock.json but intended for published packages. More information: <https://docs.npmjs.com/cli/shrinkwrap/>.Solution
npm shrinkwrap — Lock down the dependencies of a package, creating a npm-shrinkwrap.json file. Similar to package-lock.json but intended for published packages. More information: <https://docs.npmjs.com/cli/shrinkwrap/>.Generate a
npm-shrinkwrap.json file from the current package-lock.json:npm shrinkwrapRun in production mode (excludes devDependencies):
npm shrinkwrap --productionForce recreate the shrinkwrap file even if it already exists:
npm shrinkwrap --forceCode Snippets
Generate a `npm-shrinkwrap.json` file from the current `package-lock.json`
npm shrinkwrapRun in production mode (excludes devDependencies)
npm shrinkwrap --productionForce recreate the shrinkwrap file even if it already exists
npm shrinkwrap --forceContext
tldr-pages: common/npm shrinkwrap
Revisions (0)
No revisions yet.