npm Install & Dependencies/Pack the current package

Create a tarball from the current package.

Section: Local development and linking

Pack the current package

bash
bash
npm pack
Explanation

Create a tarball from the current package.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Local development and linking
Create a global symlink for current package
Register the current package for local linking.
OpenIn sheetbashsame section
Link an installed global package
Link a globally linked package into the current project.
OpenIn sheetbashsame section
Install from local tarball
Install a package from a local tarball.
OpenIn sheetbashsame section
Install a package
Install a runtime dependency.
OpenIn sheetbash1 tag match
Remove a package
Remove a dependency and update manifests.
OpenIn sheetbash1 tag match
CI install without lifecycle scripts
Perform a clean install while skipping lifecycle scripts.
OpenIn sheetbash1 tag match