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