Skip to content

clawdhub CLI: ERR_MODULE_NOT_FOUND: undici on Node.js v22.22.0 #69

@felipewilliam2

Description

@felipewilliam2

Description

When attempting to install skills using the clawdhub CLI (clawdhub install <skill-id>), the command fails with an ERR_MODULE_NOT_FOUND: Cannot find package undici error.

Error [ERR_MODULE_NOT_FOUND]: Cannot find package undici imported from /usr/lib/node_modules/clawdhub/dist/http.js
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:767:81)
    ...
Node.js v22.22.0

This occurs even after npm cache clean --force and reinstalling clawdhub globally.

Steps to Reproduce

  1. Ensure Node.js v22.22.0 is installed.
  2. Install clawdhub globally: npm i -g clawdhub
  3. Attempt to install any skill: clawdhub install TheSethRose/clawdbot-security-check

Expected Behavior

The clawdhub CLI should successfully install the skill without module not found errors.

Environment

  • Clawdbot version: 2026.1.24-3
  • clawdhub CLI version: (Need to check after reporting, assuming latest npm)
  • Node.js version: v22.22.0
  • Installation: npm global (/usr/lib/node_modules/clawdhub)
  • OS: Linux (Ubuntu)

Impact

Prevents the use of clawdhub CLI for skill installation.

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