pnpm Install and Dependencies/Install from Git repo

Install a package directly from a Git-hosted repository.

Section: Versions and Sources

Install from Git repo

bash
bash
pnpm add github:lodash/lodash
Explanation

Install a package directly from a Git-hosted repository.

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 Versions and Sources
Install dist-tag
Install a package using a registry dist-tag.
OpenIn sheetbashsame section
Install exact version
Install a specific version.
OpenIn sheetbashsame section
Install version range
Install a version range.
OpenIn sheetbashsame section
Install tarball URL
Install a package from a tarball URL.
OpenIn sheetbashsame section
Install local folder
Install from a local directory path.
OpenIn sheetbashsame section
Install workspace package via protocol
Link a workspace package using the workspace protocol.
OpenIn sheetbashsame section