diff --git a/docs/install/index.md b/docs/install/index.md index c3685ca4cff3..b76bc758ea2c 100644 --- a/docs/install/index.md +++ b/docs/install/index.md @@ -80,6 +80,23 @@ If you already manage Node yourself: openclaw onboard --install-daemon ``` + + npm 12 blocks package lifecycle scripts by default, so the command above + skips OpenClaw's `preinstall` and `postinstall` steps — npm reports them + as `blocked because they are not covered by allowScripts`. Allow them + explicitly: + + ```bash + npm install -g openclaw@latest --allow-scripts openclaw + ``` + + npm 11.16.x only warns that the scripts are `not yet covered by + allowScripts` and still runs them. If you want to clear that warning, be + aware that the `npm approve-scripts openclaw` command it suggests does not + work for a global install — it fails with `ENOMATCH No installed packages + match: openclaw`. npm 11.12 and earlier have no such policy. + + The hosted installer clears npm freshness filters such as `min-release-age` for the OpenClaw package install. If you install manually with npm, your own