dependabot/npm_and_yarn/main/eslint-10.4.0
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | --- |
| 2 | title: npm-shrinkwrap |
| 3 | section: 1 |
| 4 | description: Lock down dependency versions for publication |
| 5 | github_repo: npm/cli |
| 6 | github_branch: release/v6 |
| 7 | github_path: docs/content/commands/npm-shrinkwrap.md |
| 8 | redirect_from: |
| 9 | - /cli-documentation/v6/cli-commands/npm-shrinkwrap |
| 10 | - /cli-documentation/v6/cli-commands/shrinkwrap |
| 11 | - /cli-documentation/v6/commands/npm-shrinkwrap |
| 12 | - /cli-documentation/v6/commands/shrinkwrap |
| 13 | - /cli-documentation/v6/npm-shrinkwrap |
| 14 | - /cli-documentation/v6/shrinkwrap |
| 15 | - /cli/v6/cli-commands/npm-shrinkwrap |
| 16 | - /cli/v6/cli-commands/shrinkwrap |
| 17 | - /cli/v6/commands/shrinkwrap |
| 18 | - /cli/v6/npm-shrinkwrap |
| 19 | - /cli/v6/shrinkwrap |
| 20 | --- |
| 21 | |
| 22 | ### Synopsis |
| 23 | |
| 24 | ```bash |
| 25 | npm shrinkwrap |
| 26 | ``` |
| 27 | |
| 28 | ### Description |
| 29 | |
| 30 | This command repurposes `package-lock.json` into a publishable `npm-shrinkwrap.json` or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future `package-lock.json` files. For a detailed explanation of the design and purpose of package locks in npm, see [package-locks](/cli/v6/configuring-npm/package-locks). |
| 31 | |
| 32 | ### See Also |
| 33 | |
| 34 | - [npm install](/cli/v6/commands/npm-install) |
| 35 | - [npm run-script](/cli/v6/commands/npm-run-script) |
| 36 | - [npm scripts](/cli/v6/using-npm/scripts) |
| 37 | - [package.js](/cli/v6/configuring-npm/package-json) |
| 38 | - [package-locks](/cli/v6/configuring-npm/package-locks) |
| 39 | - [package-lock.json](/cli/v6/configuring-npm/package-lock-json) |
| 40 | - [shrinkwrap.json](/cli/v6/configuring-npm/shrinkwrap-json) |
| 41 | - [npm ls](/cli/v6/commands/npm-ls) |