Skip to content

node-llama-cpp silently fails to install on Apple Silicon + Node.js 22 #29548

Description

@ech119

Environment

  • OS: macOS Apple Silicon (arm64)
  • Node.js: v22.x
  • Clawdbot: latest

Problem

npm install -g clawdbot completes successfully, but node-llama-cpp main package is not installed. Only platform binaries exist.

Error Message

Local embeddings unavailable.
Reason: optional dependency node-llama-cpp is missing (or failed to install).

Detail: Cannot find package 'node-llama-cpp' imported from 
  ~/.npm-global/lib/node_modules/clawdbot/dist/memory/node-llama.js

node_modules Status

$ ls node_modules/ | grep llama
@node-llama-cpp    # ✅ platform binaries exist
# node-llama-cpp   # ❌ main package missing

Related Issues

Workaround

clawdbot gateway config.patch '.agents.defaults.memorySearch.provider = "gemini"'

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions