#Failed to install @openclaw/matrix: npm install failed

1 messages · Page 1 of 1 (latest)

jade mountain
#

When running oc config and trying to install matrix via npm, I see install failed with no other output other than that it failed

topaz glacierBOT
#

That wizard step is just calling the plugin installer (openclaw plugins install @openclaw/matrix). When it only says “install failed” with no details, it’s almost always one of these:

  • npm isn’t available / isn’t on PATH in that shell
  • your npm is pointed at a non-npmjs registry (common in corp setups) so @openclaw/matrix 404s
  • permissions issue under ~/.openclaw (often after running OpenClaw once with sudo)

Can you paste the output of these (they’re the fastest way to pinpoint it)?

openclaw --version
node -v
npm -v
npm config get registry
openclaw plugins install @openclaw/matrix

While you’re waiting, two quick things to try:

#

1) If your npm registry isn’t npmjs

If npm config get registry is not https://registry.npmjs.org/, set a scoped override (safer than changing your global registry):

npm config set @openclaw:registry https://registry.npmjs.org/
npm view @openclaw/matrix version
openclaw plugins install @openclaw/matrix

2) If you might have a permissions problem

Check ownership:

ls -ld ~/.openclaw ~/.openclaw/extensions 2>/dev/null || true

If those dirs are owned by root, that’ll break installs.