.TH "NPM\-SHRINKWRAP\.JSON" "5" "December 2022" "9.2.0" .SH "NAME" \fBnpm-shrinkwrap.json\fR .SH Description .P \fBnpm\-shrinkwrap\.json\fP is a file created by \fBnpm shrinkwrap\fP\|\. It is identical to .br \fBpackage\-lock\.json\fP, with one major caveat: Unlike \fBpackage\-lock\.json\fP, .br \fBnpm\-shrinkwrap\.json\fP may be included when publishing a package\. .P The recommended use\-case for \fBnpm\-shrinkwrap\.json\fP is applications deployed .br through the publishing process on the registry: for example, daemons and .br command\-line tools intended as global installs or \fBdevDependencies\fP\|\. It's .br strongly discouraged for library authors to publish this file, since that .br would prevent end users from having control over transitive dependency .br updates\. .P If both \fBpackage\-lock\.json\fP and \fBnpm\-shrinkwrap\.json\fP are present in a .br package root, \fBnpm\-shrinkwrap\.json\fP will be preferred over the .br \fBpackage\-lock\.json\fP file\. .P For full details and description of the \fBnpm\-shrinkwrap\.json\fP file format, .br refer to the manual page for .br package\-lock\.json\. .SH See also .RS 1 .IP \(bu 2 npm shrinkwrap .IP \(bu 2 package\-lock\.json .IP \(bu 2 package\.json .IP \(bu 2 npm install .RE