Repository navigation
Conversation
pnpm 11+ removed global �pprove-builds support for global packages. Use --allow-build at install time instead, which is the documented pnpm alternative. Closes openclaw#106166
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. This branch is correct, but it does not need a separate landing path because the older open pull request #106180 carries the same file-level fix for the same reported documentation bug and follows the official pnpm 11 guidance. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Land one exact-head version of #106180, close the competing duplicate branches, and let #106166 close when that canonical fix merges. So I’m closing this here and keeping the remaining discussion on #106180 and #106166. Review detailsBest possible solution: Land one exact-head version of #106180, close the competing duplicate branches, and let #106166 close when that canonical fix merges. Do we have a high-confidence way to reproduce the issue? Yes. Current main documents Is this the best way to solve the issue? The command change is correct, but maintaining this second identical landing candidate is not the best repository path; the older canonical PR should be reviewed and landed instead. Security review: Security review cleared: The docs-only diff introduces no executable, dependency, permissions, secret-handling, or supply-chain change. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against ac4fd2ad4265. |
pnpm 11 requires --allow-build to specify package names explicitly. Using --allow-build=openclaw matches pnpm's documented syntax for global installs.
|
Closing per ClawSweeper review verdict |
pnpm 11+ removed global pprove-builds support for global packages. Use --allow-build at install time instead, which is the documented pnpm alternative.
Closes #106166
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where users following the pnpm global installation instructions would encounter ERR_PNPM_APPROVE_BUILDS_NOT_SUPPORTED_WITH_GLOBAL error when running pnpm approve-builds -g , because pnpm 11+ removed global support for the approve-builds command.
Affected surface: The installation documentation page at docs/install/index.md under the pnpm tab.
Why This Change Was Made
The shipped documentation instructed users to run pnpm approve-builds -g after installing OpenClaw globally, but pnpm 11+ explicitly removed this global-mode approval command. The fix replaces the two-step install-then-approve flow with a single pnpm add -g openclaw@latest --allow-build command, which uses pnpm's documented install-time approval alternative. This is the narrowest maintainable fix that aligns with current pnpm behavior while keeping the source-checkout approval guidance unchanged.
User Impact
Users installing OpenClaw via pnpm global install can now successfully complete the installation without encountering an unsupported command error. The installation flow remains straightforward with a single command, and the note explains why the change was made for users upgrading from older pnpm versions.
Evidence