Skip to content

Can't run agent "node dist/agent.js dev" #26

Open
@nicolasbui

Description

@nicolasbui

Hardware : Mac M1 Max 32go 1To
Node.JS v22.12.0

Hi,
I've try everything described in the error, but, I always get the error below :
node dist/agent.js dev
/Users/nicolasbui/Projects/LiveKit/cognitive-hypervisor-8ndx2t/node_modules/.pnpm/sharp@0.33.5/node_modules/sharp/lib/sharp.js:113
throw new Error(help.join('\n'));
^

Error: Could not load the "sharp" module using the darwin-arm64 runtime
Possible solutions:

  • Ensure optional dependencies can be installed:
    npm install --include=optional sharp
  • Ensure your package manager supports multi-platform installation:
    See https://sharp.pixelplumbing.com/install#cross-platform
  • Add platform-specific dependencies:
    npm install --os=darwin --cpu=arm64 sharp
  • Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
    at Object. (/Users/nicolasbui/Projects/LiveKit/cognitive-hypervisor-8ndx2t/node_modules/.pnpm/sharp@0.33.5/node_modules/sharp/lib/sharp.js:113:9)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object..js (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:138:16)
    at Object. (/Users/nicolasbui/Projects/LiveKit/cognitive-hypervisor-8ndx2t/node_modules/.pnpm/sharp@0.33.5/node_modules/sharp/lib/constructor.js:10:1)

Node.js v22.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions