fix(plugins): avoid managed npm prefix on Windows

Fixes #78514.
This commit is contained in:
Vincent Koc
2026-05-09 07:51:49 +08:00
committed by GitHub
parent becfeb48b4
commit 3ba2ce6694
8 changed files with 5 additions and 25 deletions

View File

@@ -41,7 +41,8 @@ OpenClaw uses stable per-source roots:
npm installs run in the npm root with:
```bash
npm install --prefix ~/.openclaw/npm <spec> --omit=dev --omit=peer --legacy-peer-deps --ignore-scripts --no-audit --no-fund
cd ~/.openclaw/npm
npm install --omit=dev --omit=peer --legacy-peer-deps --ignore-scripts --no-audit --no-fund
```
`openclaw plugins install npm-pack:<path.tgz>` uses that same managed npm root