• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
18`npm-shrinkwrap.json` or simply creates a new one. The file created and
19updated by this command will then take precedence over any other existing
20or future `package-lock.json` files. For a detailed explanation of the
21design and purpose of package locks in npm, see
22[package-lock-json](/configuring-npm/package-lock-json).
23
24### See Also
25
26* [npm install](/commands/npm-install)
27* [npm run-script](/commands/npm-run-script)
28* [npm scripts](/using-npm/scripts)
29* [package.json](/configuring-npm/package-json)
30* [package-lock.json](/configuring-npm/package-lock-json)
31* [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json)
32* [npm ls](/commands/npm-ls)
33