Install a version range.
Section: Versions and Sources
Install version range
bash
bash
pnpm add react@^18Explanation
Install a version range.
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 from Git repo
Install a package directly from a Git-hosted repository.
Install workspace package via protocol
Link a workspace package using the workspace protocol.