diff --git a/docs/install/index.md b/docs/install/index.md index c9d87d10f0..ad08da5c09 100644 --- a/docs/install/index.md +++ b/docs/install/index.md @@ -74,12 +74,16 @@ SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest 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. -Or: +Or with pnpm: ```bash pnpm add -g openclaw@latest +pnpm approve-builds -g # approve openclaw, node-llama-cpp, sharp, etc. +pnpm add -g openclaw@latest # re-run to execute postinstall scripts ``` +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. + Then: ```bash