Skip to content

fix(agents-box): install the m365 CLI under /usr/local so hermes v0.22 builds - #234

Merged
joedanz merged 1 commit into
mainfrom
fix/m365-npm-prefix
Oct 30, 2026
Merged

joedanz merged 1 commit into
mainfrom
fix/m365-npm-prefix

Conversation

@joedanz

@joedanz joedanz commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • From hermes v0.22, the base image bundles its own Node under /opt/hermes/tools/node-*/, and npm's global prefix points there, off PATH.
  • A bare npm install -g @pnp/cli-microsoft365 put m365 there, so m365 --version failed with 127. That failed the fleet's upgrade-hermes rebuild to v0.22.5 (no agent was affected; the build failed before rollout).
  • Fix: npm install -g --prefix /usr/local, the old default, which is on PATH in every base image. Comment and CHANGELOG updated.

Test plan

  • Built deploy/agents-box/Dockerfile against nousresearch/hermes-agent:v0.22.5 on helm-agents under a scratch tag: build exit 0.
  • In that image: m365 at /usr/local/bin/m365, m365 version = v11.10.0 (same as the live image), openpyxl 3.1.5, hermes serve /api/status answers 0.22.5.
  • On the old base, /usr/local already was the prefix, so the build is unchanged there.

https://claude.ai/code/session_01LdXVKJurmhkcFxdUJBLKcr

…2 builds

From hermes v0.22 the base image bundles Node under
/opt/hermes/tools/node-*/ and npm's global prefix points there, off PATH.
A bare `npm install -g` put `m365` in that bin dir and `m365 --version`
failed with 127, which failed the fleet's upgrade-hermes rebuild to
v0.22.5. Pin `--prefix /usr/local`, the old default, on PATH in every
base image.

Verified: built against nousresearch/hermes-agent:v0.22.5 on helm-agents
(scratch tag); m365 v11.10.0 at /usr/local/bin/m365, openpyxl 3.1.5,
serve /api/status answers 0.22.5.

Claude-Session: https://claude.ai/code/session_01LdXVKJurmhkcFxdUJBLKcr
@joedanz
joedanz merged commit be0c6e2 into main Oct 30, 2026
6 checks passed
@joedanz
joedanz deleted the fix/m365-npm-prefix branch October 30, 2026 11:10
@joedanz joedanz mentioned this pull request Oct 30, 2026
1 task done

This branch was successfully deployed

1 active deployment
Preview — 76f5163e Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant