mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 22:11:34 +00:00
The documented `npm install -g openclaw@latest` does not run OpenClaw's preinstall/postinstall steps on npm 12, which blocks package lifecycle scripts by default. Nothing in the install docs mentioned this. Adds a note to the npm tab with the working command. The pnpm tab already documents its equivalent (`pnpm approve-builds -g`), so npm was the only tab without one. Scoped to npm 12 rather than 11.16: `strict-allow-scripts` is undefined on npm 11.12.1 and false on both 11.16.0 and 12.0.1, and only npm 12 reports the scripts as "blocked because they are not covered by allowScripts". npm 11.16.x warns that they are "not yet covered" and still runs them, so the note describes it as warning-only and keeps the ENOMATCH caveat about the approve-scripts remedy it suggests. Closes #114665 Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>