1NPM-PACK(1) NPM-PACK(1)
2
3
4
6 npm-pack - Create a tarball from a package
7
9 npm pack [[<@scope>/]<pkg>...] [--dry-run]
10
12 For anything that's installable (that is, a package folder, tarball,
13 tarball url, name@tag, name@version, name, or scoped name), this com‐
14 mand will fetch it to the cache, and then copy the tarball to the cur‐
15 rent working directory as <name>-<version>.tgz, and then write the
16 filenames out to stdout.
17
18 If the same package is specified multiple times, then the file will be
19 overwritten the second time.
20
21 If no arguments are supplied, then npm packs the current package
22 folder.
23
24 The --dry-run argument will do everything that pack usually does with‐
25 out actually packing anything. Reports on what would have gone into the
26 tarball.
27
29 · npm help cache
30
31 · npm help publish
32
33 · npm help config
34
35 · npm help 7 config
36
37 · npm help 5 npmrc
38
39
40
41
42
43 October 2019 NPM-PACK(1)