mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 09:27:09 +00:00

PR-URL: https://github.com/nodejs/node/pull/32368 Refs: https://github.com/nodejs/node/issues/32296 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
35 lines
992 B
Markdown
35 lines
992 B
Markdown
---
|
|
section: cli-commands
|
|
title: npm-shrinkwrap
|
|
description: Lock down dependency versions for publication
|
|
---
|
|
|
|
# npm-shrinkwrap(1)
|
|
|
|
## Lock down dependency versions for publication
|
|
|
|
### Synopsis
|
|
|
|
```bash
|
|
npm shrinkwrap
|
|
```
|
|
|
|
### Description
|
|
|
|
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](/configuring-npm/package-locks).
|
|
|
|
### See Also
|
|
|
|
* [npm install](/cli-commands/install)
|
|
* [npm run-script](/cli-commands/run-script)
|
|
* [npm scripts](/using-npm/scripts)
|
|
* [package.js](/configuring-npm/package-json)
|
|
* [package-locks](/configuring-npm/package-locks)
|
|
* [package-lock.json](/configuring-npm/package-lock-json)
|
|
* [shrinkwrap.json](/configuring-npm/shrinkwrap-json)
|
|
* [npm ls](/cli-commands/ls)
|