npm pack
.tgz,
Syntax
npm pack [<package-spec>] [--dry-run]
Parameters
| Parameters | Description | Examples | Level |
|---|---|---|---|
(Parameters) |
npm pack |
Common | |
--dry-run |
npm pack --dry-run |
Common | |
<package> |
npm pack react |
Advanced |
Examples
npm pack --dry-run
npm pack npm install ./my-package-1.0.0.tgz
npm pack 2>&1 | tail -1
Common Errors
package.json files,.npmignore
Tips
- npm pack --dry-run
- package.json files.npmignore Recommended
- npm pack.tgz npm install