Skip to content

Commit 3ae049b

Browse files
sfo2001claude
andauthored
docs(install): add pnpm approve-builds step for global installs (#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 #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]>
1 parent e9f70e8 commit 3ae049b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎docs/install/index.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,16 @@ SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
7474

7575
If you see `sharp: Please add node-gyp to your dependencies`, either install build tooling (macOS: Xcode CLT + `npm install -g node-gyp`) or use the `SHARP_IGNORE_GLOBAL_LIBVIPS=1` workaround above to skip the native build.
7676

77-
Or:
77+
Or with pnpm:
7878

7979
```bash
8080
pnpm add -g openclaw@latest
81+
pnpm approve-builds -g # approve openclaw, node-llama-cpp, sharp, etc.
82+
pnpm add -g openclaw@latest # re-run to execute postinstall scripts
8183
```
8284

85+
pnpm requires explicit approval for packages with build scripts. After the first install shows the "Ignored build scripts" warning, run `pnpm approve-builds -g` and select the listed packages, then re-run the install so postinstall scripts execute.
86+
8387
Then:
8488

8589
```bash

0 commit comments

Comments
 (0)