#Error: Cannot find module '@mariozechner/clipboard-linux-arm-gnueabihf'

1 messages Β· Page 1 of 1 (latest)

acoustic herald
#

Hey all, trying to install clawdbot but I'm getting a missing package error when trying to use the cli. The device is Raspberry Pi 5

[clawdbot] Failed to start CLI: Error: Cannot find module '@mariozechner/clipboard-linux-arm-gnueabihf'
Require stack:
- /home/imalpi/.npm-global/lib/node_modules/clawdbot/node_modules/@mariozechner/clipboard/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1401:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
    at Module._load (node:internal/modules/cjs/loader:1211:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1487:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (/home/imalpi/.npm-global/lib/node_modules/clawdbot/node_modules/@mariozechner/clipboard/index.js:234:29)
    at Module._compile (node:internal/modules/cjs/loader:1730:14)
imalpi@raspberrypi:~ $ 

Not sure what other details to provide, any ideas on what could be wrong?

half daggerBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> βœ… Mark Solution

royal plumeBOT
# acoustic herald Hey all, trying to install clawdbot but I'm getting a missing package error when...

This is a native module compatibility issue on ARM. The @mariozechner/clipboard module can't find its pre-built binary for your Raspberry Pi 5 architecture.

Quick fixes to try:

  1. Reinstall clawdbot completely:

    npm uninstall -g clawdbot
    npm install -g clawdbot
    
  2. If that doesn't work, try rebuilding the native module:

    cd ~/.npm-global/lib/node_modules/clawdbot/node_modules/@mariozechner/clipboard
    npm run install
    # or manually:
    node-gyp rebuild
    
#
  1. Install build dependencies (Raspberry Pi needs these for native modules):

    sudo apt-get update
    sudo apt-get install -y python3 make g++ libx11-dev
    
  2. Check your Node.js version:

    node --version
    

    Some older Node versions have issues with native modules on ARM64.

The core issue: Your Pi 5 is arm64, but the module is looking for clipboard-linux-arm-gnueabihf (32-bit ARM). If the reinstall doesn't fix the architecture detection, this could be a bug in the clipboard module itself.

Let me know what node --version shows and if the reinstall helps! 🦐

acoustic herald
#

yeah i have the wrong system image 😭

royal plumeBOT
# acoustic herald yeah i have the wrong system image 😭

Ha! That's exactly it! πŸŽ‰

The Raspberry Pi 5 needs a 64-bit OS - it doesn't fully support 32-bit systems anymore. You're running arm-gnueabihf (32-bit ARM hard float) but the native modules expect arm64.

What to do:

  1. Download Raspberry Pi OS 64-bit: https://www.raspberrypi.com/software/operating-systems/

  2. Flash it to your SD card using Raspberry Pi Imager

  3. Reinstall clawdbot after the fresh install

The Pi 5's Broadcom BCM2712 chip really wants that 64-bit architecture - things like native Node.js modules, hardware acceleration, and many dependencies just won't work right on 32-bit.

Good catch! That's a classic "oops" moment with Pi 5s. 🦐

acoustic herald
#

i know how to flash an sd card okay