docs: add Windows pnpm fallback for Corepack EPERM#94514
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 25, 2026, 4:28 AM ET / 08:28 UTC. ClawSweeper reviewWhat this changesThis PR adds a Windows source-setup note recommending Merge readinessKeep this PR open for ordinary maintainer review. The scoped change is a plausible, documentation-only recovery path and the contributor supplied a real Windows setup transcript, but the branch is behind Priority: P3 Review scores
Verification
How this fits togetherThe source-setup documentation tells contributors how to prepare Node and pnpm before installing the OpenClaw workspace. This note sits on the recovery path between a failed Corepack shim installation and a usable pnpm command, after which dependency installation can proceed. flowchart LR
A[Windows contributor] --> B[Corepack enable]
B --> C{Shim creation succeeds?}
C -- Yes --> D[pnpm available]
C -- EPERM --> E[Source setup fallback]
E --> D
D --> F[Workspace dependency install]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +6. Total +6 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the concise fallback in source setup if the current package-manager pin still matches it, then refresh the branch against Do we have a high-confidence way to reproduce the issue? Not applicable as a current-main code reproduction: this PR changes documentation only. The contributor supplied a concrete Windows 10 reproduction of the Corepack EPERM path and a successful fallback setup transcript. Is this the best way to solve the issue? Unclear pending current-main confirmation of the package-manager pin. Moving the note into source setup is the appropriate narrow documentation layer, but the exact version and wording should match current repository guidance before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b0525e1a70b6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Thanks for the review and feedback. The Real Behavior Proof section has been updated with a Windows 10 reproduction and successful OpenClaw repository setup validation using the documented fallback path. Regarding the suggestion to move the workaround from Could a maintainer advise whether the preferred next step is:
Thank you. |
|
@clawsweeper re-review Moved the Windows Corepack EPERM workaround from |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Updated the pnpm version in the Windows fallback note from |
Summary
This PR adds a Windows-specific fallback note for Corepack EPERM errors during OpenClaw onboarding.
On some Windows environments, running
corepack enablefails because Corepack cannot create the pnpm shim inside the protectedC:\Program Files\nodejsdirectory.This change documents
npm install -g pnpmas a fallback path when Corepack fails.Intended outcome
Out of scope
Linked context
Closes #
Related #
No maintainer request.
Real behavior proof
Behavior addressed: Windows Corepack EPERM failure during OpenClaw onboarding.
corepack enablefailed when attempting to create the pnpm shim inC:\Program Files\nodejs.Real environment tested: Windows 10, Git Bash, Node.js v24.16.0, pnpm v11.2.2.
Exact steps or command run after this patch:
corepack enableOutput:
Fallback:
Output:
OpenClaw repository validation:
Output excerpt:
Evidence after fix: After using the documented fallback (
npm install -g pnpm), pnpm installed successfully andpnpm installcompleted successfully in the OpenClaw repository, including dependency installation, preinstall hooks, postinstall hooks, and prepare scripts.Observed result after fix: The Windows Corepack EPERM issue no longer blocked repository setup. The fallback path allowed successful pnpm installation and successful OpenClaw workspace installation.
What was not tested: Windows 11, administrator-elevated Corepack installation, and alternative Node.js versions.
Proof limitations or environment constraints: This PR changes documentation only. Validation was performed by reproducing the Windows Corepack EPERM failure and verifying that the documented fallback successfully completed OpenClaw repository setup.
Tests and validation
Commands executed:
corepack enable npm install -g pnpm pnpm -v pnpm installNo automated tests were added because this is a documentation-only change.
Risk checklist
Did user-visible behavior change? Yes
Did config, environment, or migration behavior change? No
Did security, auth, secrets, network, or tool execution behavior change? No
Highest-risk area: Documentation accuracy.
How is that risk mitigated? The documented fallback was reproduced and validated on a real Windows 10 environment.
Current review state
Next action: Maintainer review.
Waiting on: Real behavior proof validation and reviewer feedback.
Bot or reviewer comments addressed: Added real Windows 10 reproduction steps, terminal output, and successful OpenClaw repository setup evidence.