• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: cli-commands
3title: npm-shrinkwrap
4description: Lock down dependency versions for publication
5---
6
7# npm-shrinkwrap(1)
8
9## Lock down dependency versions for publication
10
11### Synopsis
12
13```bash
14npm shrinkwrap
15```
16
17### Description
18
19This command repurposes `package-lock.json` into a publishable
20`npm-shrinkwrap.json` or simply creates a new one. The file created and updated
21by this command will then take precedence over any other existing or future
22`package-lock.json` files. For a detailed explanation of the design and purpose
23of package locks in npm, see [package-locks](/configuring-npm/package-locks).
24
25### See Also
26
27* [npm install](/cli-commands/npm-install)
28* [npm run-script](/cli-commands/npm-run-script)
29* [npm scripts](/using-npm/scripts)
30* [package.js](/configuring-npm/package-json)
31* [package-locks](/configuring-npm/package-locks)
32* [package-lock.json](/configuring-npm/package-lock-json)
33* [shrinkwrap.json](/configuring-npm/shrinkwrap-json)
34* [npm ls](/cli-commands/npm-ls)
35