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)