Install for local development and declare the peer dependency in package.json.
Section: Dependency Types
Add peer dependency entry
bash
bash
pnpm add -D react && pnpm pkg set peerDependencies.react='^18.0.0'Explanation
Install for local development and declare the peer dependency in package.json.
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 Dependency Types