npm Install & Dependencies/Install from local tarball

Install a package from a local tarball.

Section: Local development and linking

Install from local tarball

bash
bash
npm install ./my-package-1.0.0.tgz
Explanation

Install a package from a local tarball.

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
Pack the current package
Create a tarball from the current package.
OpenIn sheetbashsame section
Install a package
Install a runtime dependency.
OpenIn sheetbash2 tag match
Install a specific version
Install an exact version.
OpenIn sheetbash2 tag match
Install a dev dependency
Add a development dependency.
OpenIn sheetbash2 tag match