Skip to content

docs(install): add pnpm approve-builds step for global installs - #5663

Merged
sebslight merged 2 commits into
openclaw:mainfrom
sfo2001:docs/pnpm-approve-builds
Feb 1, 2026
Merged

sebslight merged 2 commits into
openclaw:mainfrom
sfo2001:docs/pnpm-approve-builds

Conversation

@sfo2001

@sfo2001 sfo2001 commented Jan 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Document the required pnpm approve-builds -g step when installing openclaw globally with pnpm
  • pnpm requires explicit approval for packages with build scripts; without this step, postinstall scripts don't run

Test plan

  • Verified documentation renders correctly

Fixes #5579

Greptile Overview

Greptile Summary

Updates the global install docs to include pnpm-specific guidance: after pnpm add -g openclaw@latest, users may need to run pnpm approve-builds -g to allow dependency build/postinstall scripts (e.g., sharp/node-llama-cpp) to execute. This fits into the existing “Global install (manual)” section as an alternative to npm-based global installation and helps avoid incomplete installs caused by pnpm’s build-script approval requirement.

Confidence Score: 4/5

  • This PR is low risk and safe to merge, with minor doc-accuracy nits to consider.
  • Change is confined to installation documentation and doesn’t affect runtime behavior. The only concerns are potential pnpm-version differences and whether approval alone triggers postinstall scripts without an explicit reinstall step.
  • docs/install/index.md

Context used:

  • Context from dashboard - CLAUDE.md (source)
  • Context from dashboard - AGENTS.md (source)

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Jan 31, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread docs/install/index.md
Comment on lines 79 to 81
pnpm add -g openclaw@latest
pnpm approve-builds -g # select openclaw, node-llama-cpp, sharp, etc.
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] pnpm add -g may not be the recommended global-install command.

pnpm’s global install UX has changed over time (pnpm add -g vs pnpm add --global vs pnpm install -g / pnpm i -g), and readers on different pnpm versions may get warnings or unexpected behavior. Consider using the canonical form used elsewhere in the docs (or pnpm’s current recommendation) to reduce confusion.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/install/index.md
Line: 79:81

Comment:
[P2] `pnpm add -g` may not be the recommended global-install command.

pnpm’s global install UX has changed over time (`pnpm add -g` vs `pnpm add --global` vs `pnpm install -g` / `pnpm i -g`), and readers on different pnpm versions may get warnings or unexpected behavior. Consider using the canonical form used elsewhere in the docs (or pnpm’s current recommendation) to reduce confusion.

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm add -g is the canonical form per pnpm docs (https://pnpm.io/cli/add). No change needed.

Comment thread docs/install/index.md Outdated
pnpm approve-builds -g # select openclaw, node-llama-cpp, sharp, etc.
```

pnpm requires explicit approval for packages with build scripts. After `pnpm add -g`, run `pnpm approve-builds -g` and approve the listed packages (openclaw, node-llama-cpp, sharp, protobufjs, etc.), then pnpm will run their postinstall scripts.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Consider tightening the “approve builds” wording to the exact pnpm behavior.

pnpm approve-builds -g is interactive and approvals persist per store; saying “then pnpm will run their postinstall scripts” can read like it happens automatically without re-running/triggering installs. A small wording tweak like “after approving, re-run pnpm add -g openclaw@latest (or reinstall) so postinstall scripts run” would prevent user confusion if they approve after the fact.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/install/index.md
Line: 83:83

Comment:
[P3] Consider tightening the “approve builds” wording to the exact pnpm behavior.

`pnpm approve-builds -g` is interactive and approvals persist per store; saying “then pnpm will run their postinstall scripts” can read like it happens automatically without re-running/triggering installs. A small wording tweak like “after approving, re-run `pnpm add -g openclaw@latest` (or reinstall) so postinstall scripts run” would prevent user confusion if they approve after the fact.

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ada3806 - now shows explicit 3-step flow: install --> approve-builds --> reinstall.

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sebslight
sebslight merged commit 3ae049b into openclaw:main Feb 1, 2026
19 of 22 checks passed
@sfo2001
sfo2001 deleted the docs/pnpm-approve-builds branch February 1, 2026 17:44
HashWarlock pushed a commit to HashWarlock/openclaw that referenced this pull request Feb 4, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
uxcu pushed a commit to uxcu/kook-openclaw that referenced this pull request Feb 5, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
bestNiu pushed a commit to bestNiu/clawdbot that referenced this pull request Feb 5, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
battman21 pushed a commit to battman21/openclaw that referenced this pull request Feb 12, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
battman21 pushed a commit to battman21/openclaw that referenced this pull request Feb 12, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…claw#5663)

* docs(install): add pnpm approve-builds step for global installs

pnpm requires explicit approval for packages with build scripts.
Without running `pnpm approve-builds -g`, openclaw and its dependencies
(node-llama-cpp, sharp, protobufjs) won't have their postinstall scripts
executed, causing runtime errors.

Fixes openclaw#5579

Co-Authored-By: Claude Opus 4.5 <[email protected]>

* docs(install): clarify pnpm reinstall step after approve-builds

Address review feedback: after running `pnpm approve-builds -g`,
users need to re-run the install command for postinstall scripts
to actually execute.

Co-Authored-By: Claude Opus 4.5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: pnpm installation instructions fail

2 participants