1NPM-SHRINKWRAP.JSON(5)                                  NPM-SHRINKWRAP.JSON(5)
2
3
4

NAME

6       npm-shrinkwrap.json - A publishable lockfile
7
8   Description
9       npm-shrinkwrap.json  is  a  file  created by npm help shrinkwrap. It is
10       identical to package-lock.json, with one  major  caveat:  Unlike  pack‐
11       age-lock.json,  npm-shrinkwrap.json  may  be included when publishing a
12       package.
13
14       The  recommended  use-case  for  npm-shrinkwrap.json  is   applications
15       deployed  through  the publishing process on the registry: for example,
16       daemons and command-line tools intended as global installs or devDepen‐
17       dencies.  It's strongly discouraged for library authors to publish this
18       file, since that would prevent end users from having control over tran‐
19       sitive dependency updates.
20
21       Additionally,  if  both  package-lock.json  and npm-shrinkwrap.json are
22       present in a package root, package-lock.json will be ignored  in  favor
23       of this file.
24
25       For  full  details and description of the npm-shrinkwrap.json file for‐
26       mat, refer to the manual page for npm help package-lock.json.
27
28   See also
29       · npm help shrinkwrap
30
31       · npm help package-lock.json
32
33       · npm help package.json
34
35       · npm help install
36
37
38
39
40                                  March 2020            NPM-SHRINKWRAP.JSON(5)
Impressum