codekingpro/portable-devtools
114k
1.TH "NPM-SHRINKWRAP.JSON" "5" "April 2026" "NPM@11.13.0" ""
2.SH "NAME"
3\fBnpm-shrinkwrap.json\fR - A publishable lockfile
4.SS "Description"
5.P
6\fBnpm-shrinkwrap.json\fR is a file created by npm help shrinkwrap. It is identical to \fBpackage-lock.json\fR, with one major caveat: Unlike \fBpackage-lock.json\fR, \fBnpm-shrinkwrap.json\fR may be included when publishing a package.
7.P
8The recommended use-case for \fBnpm-shrinkwrap.json\fR is applications deployed through the publishing process on the registry: for example, daemons and command-line tools intended as global installs or \fBdevDependencies\fR. It's strongly discouraged for library authors to publish this file, since that would prevent end users from having control over transitive dependency updates.
9.P
10If both \fBpackage-lock.json\fR and \fBnpm-shrinkwrap.json\fR are present in a package root, \fBnpm-shrinkwrap.json\fR will be preferred over the \fBpackage-lock.json\fR file.
11.P
12For full details and description of the \fBnpm-shrinkwrap.json\fR file format, refer to the manual page for \fBpackage-lock.json\fR \fI\(la/configuring-npm/package-lock-json\(ra\fR.
13.SS "See also"
14.RS 0
15.IP \(bu 4
16npm help shrinkwrap
17.IP \(bu 4
18\fBpackage-lock.json\fR \fI\(la/configuring-npm/package-lock-json\(ra\fR
19.IP \(bu 4
20\fBpackage.json\fR \fI\(la/configuring-npm/package-json\(ra\fR
21.IP \(bu 4
22npm help install
23.RE 0
24 