snippetbashTip
npm pack — Create a tarball from a package. More information: <https://docs.npmjs.com/cli/pack/>.
Viewed 0 times
createtarballcommandnpm packfromclipackagemore
Problem
How to use the
npm pack command: Create a tarball from a package. More information: <https://docs.npmjs.com/cli/pack/>.Solution
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 packCreate a tarball from a specific package folder:
npm pack {{path/to/package_directory}}Run a dry run to preview the tarball contents without creating it:
npm pack --dry-runCreate a tarball without running lifecycle scripts:
npm pack --ignore-scriptsSpecify a custom registry to fetch package metadata from:
npm pack --registry {{https://registry.npmjs.org/}}Code Snippets
Create a tarball from the current package in the current directory
npm packCreate a tarball from a specific package folder
npm pack {{path/to/package_directory}}Run a dry run to preview the tarball contents without creating it
npm pack --dry-runCreate a tarball without running lifecycle scripts
npm pack --ignore-scriptsSpecify a custom registry to fetch package metadata from
npm pack --registry {{https://registry.npmjs.org/}}Context
tldr-pages: common/npm pack
Revisions (0)
No revisions yet.