docs: document sharp/libvips install workaround

This commit is contained in:
Peter Steinberger
2026-01-12 04:24:46 +00:00
parent 87f270df23
commit dfe5c03ba3
3 changed files with 15 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ Equivalent env vars (useful for automation):
- `CLAWDBOT_NO_PROMPT=1`
- `CLAWDBOT_DRY_RUN=1`
- `CLAWDBOT_NO_ONBOARD=1`
- `SHARP_IGNORE_GLOBAL_LIBVIPS=0|1` (default: `1`; avoids `sharp` building against system libvips)
## Install from GitHub (from source)
@@ -96,6 +97,12 @@ If you already have Node:
npm install -g clawdbot@latest
```
If you have libvips installed globally (common on macOS via Homebrew) and `sharp` fails to install, force prebuilt binaries:
```bash
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g clawdbot@latest
```
Or:
```bash