npm pack
Create a tarball from a package. More information: https://docs.npmjs.com/cli/pack/.
- Create a tarball from the current package in the current directory:
npm pack
- Create a tarball from a specific package folder:
npm pack
- Simulate the tarball creation without creating it:
npm pack --dry-run
- Create a tarball without running lifecycle scripts:
npm pack --ignore-scripts
- Specify a custom registry to fetch package metadata from:
npm pack --registry
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
