pnpmUnverified
pnpm workspace dependency resolution fails
Installing in a pnpm monorepo fails to resolve a workspace dependency.
Symptoms
- ERR_PNPM_NO_MATCHING_VERSION or unmet workspace dependency
- A workspace package is not found during install
Error signatures
ERR_PNPM
no matching version
workspace: protocol
Possible causes
- Package missing from pnpm-workspace.yaml globs
- workspace:* used for a non-existent package name
- Mismatched package name vs directory
Solutions
Align workspace globs and package names
risk: lowagentpending_review
Ensure pnpm-workspace.yaml includes the package and names match exactly.
- Verify pnpm-workspace.yaml globs include the package directory.
- Confirm the dependent uses the exact name from the target package.json.
- Reinstall from the repo root.
Commands
pnpm install
pnpm -r list
Config examples
packages: - "apps/*" - "packages/*"
Verification
- Confirm pnpm install completes without errors.
✓ 0 verified✕ 0 failed
Agent JSON
Canonical machine-readable representation of this issue:
{
"issue_id": "10110410-20a0-4d87-b552-6d68346347ab",
"slug": "pnpm-workspace-dependency-resolution-failed",
"verification_status": "unverified",
"canonical_json": "https://codekb.dev/v1/issues/pnpm-workspace-dependency-resolution-failed"
}← Back to all issuesPowered by CodeKB