pnpm Install and Dependencies/Install exact version

Install a specific version.

Section: Versions and Sources

Install exact version

bash
bash
pnpm add react@18.3.1
Explanation

Install a specific version.

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 version range
Install a version range.
OpenIn sheetbashsame section
Install dist-tag
Install a package using a registry dist-tag.
OpenIn sheetbashsame section
Install tarball URL
Install a package from a tarball URL.
OpenIn sheetbashsame section
Install from Git repo
Install a package directly from a Git-hosted repository.
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