claude/.claude
Bastien Chanot 1f2c1cc6e7 fix(install-plugins): guarantee npm present, not just node>=22
BLK-013 fix-forward. Step 1 checked `node >=22` but never verified npm.
On a host where node was already recent, NODE_OK short-circuited the
installer and npm was never touched — yet GSD (gsd-pi) and ctx7 install
via `npm install -g`, so a missing npm made `make plugin` die Error 127
mid-run (distro `apt install nodejs` can ship npm as a separate package).

Add an unconditional npm guard right after the Node block:
corepack enable npm → distro package-manager install fallback → fatal
exit 1 with an actionable message if still absent. Happy path (npm
present) skips the whole block: zero behavior change on healthy machines.

shellcheck clean (only pre-existing SC1091 infos), bash -n OK. Fresh
npm-less apt host validation still pending. Closes TODO (a) 2026-06-30.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VeBXkDr74N9whdiJyjzyVN
2026-07-01 21:07:38 +02:00
..
audits darwin: Phase 3 report — bottom-5 round 1, avg 58.0 → 78.2 2026-05-12 18:01:42 +02:00
memory chore(memory): BDR-046 — Claude Code via official native installer, drop npm 2026-07-01 20:14:56 +02:00
tasks fix(install-plugins): guarantee npm present, not just node>=22 2026-07-01 21:07:38 +02:00
settings.json chore(graphify): rewrite CLAUDE.md + hook to prefer graphify query over GRAPH_REPORT.md 2026-05-21 05:55:13 +02:00