2025-04-10 14:36:22 -07:00
.TH "NPM-SHRINKWRAP" "1" "April 2025" "NPM@11.3.0" ""
2012-02-24 18:52:17 -08:00
.SH "NAME"
2022-12-06 22:18:33 -05:00
\fB npm-shrinkwrap\fR - Lock down dependency versions for publication
.SS "Synopsis"
2014-09-24 14:41:07 -07:00
.P
.RS 2
2014-11-04 15:08:12 -08:00
.nf
2012-02-24 18:52:17 -08:00
npm shrinkwrap
2014-11-04 15:08:12 -08:00
.fi
2014-09-24 14:41:07 -07:00
.RE
2021-03-23 14:58:11 -04:00
.P
2022-12-06 22:18:33 -05:00
Note: This command is unaware of workspaces.
.SS "Description"
2014-09-24 14:41:07 -07:00
.P
2022-12-06 22:18:33 -05:00
This command repurposes \fB package-lock.json\fR into a publishable \fB npm-shrinkwrap.json\fR or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future \fB package-lock.json\fR files. For a detailed explanation of the design and purpose of package locks in npm, see npm help package-lock-json.
.SS "See Also"
2014-09-24 14:41:07 -07:00
.RS 0
2022-12-06 22:18:33 -05:00
.IP \(bu 4
2019-11-18 21:01:39 +02:00
npm help install
2022-12-06 22:18:33 -05:00
.IP \(bu 4
npm help run-script
.IP \(bu 4
2019-11-05 14:55:08 -05:00
npm help scripts
2022-12-06 22:18:33 -05:00
.IP \(bu 4
\fB package.json\fR \fI \(la /configuring-npm/package-json\(ra \fR
.IP \(bu 4
\fB package-lock.json\fR \fI \(la /configuring-npm/package-lock-json\(ra \fR
.IP \(bu 4
\fB npm-shrinkwrap.json\fR \fI \(la /configuring-npm/npm-shrinkwrap-json\(ra \fR
.IP \(bu 4
2019-11-18 21:01:39 +02:00
npm help ls
2022-12-06 22:18:33 -05:00
.RE 0