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

Open
opened 2026-02-15 17:15:11 -05:00 by yindo · 2 comments
Owner

Originally created by @felipewilliam2 on GitHub (Jan 29, 2026).

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.

Originally created by @felipewilliam2 on GitHub (Jan 29, 2026). ## 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.
Author
Owner

@nesdeq commented on GitHub (Jan 31, 2026):

just npm install -g undici until they fixed the deps

@nesdeq commented on GitHub (Jan 31, 2026): just `npm install -g undici` until they fixed the deps
Author
Owner

@superlowburn commented on GitHub (Feb 14, 2026):

This was fixed in clawhub@0.4.0 (released Jan 30, 2026). The undici dependency (^7.16.0) is now included in packages/clawdhub/package.json.

The original report references /usr/lib/node_modules/clawdhub/dist/http.js — note the d in clawdhub. The package was rebranded from clawdhubclawhub between v0.3.0 and v0.4.0, and the undici fix shipped with the new package name.

To resolve: npm install -g clawhub@latest (no d in the name).

This issue can likely be closed as resolved.

@superlowburn commented on GitHub (Feb 14, 2026): This was fixed in `clawhub@0.4.0` (released Jan 30, 2026). The `undici` dependency (`^7.16.0`) is now included in `packages/clawdhub/package.json`. The original report references `/usr/lib/node_modules/clawdhub/dist/http.js` — note the `d` in `clawdhub`. The package was rebranded from `clawdhub` → `clawhub` between v0.3.0 and v0.4.0, and the undici fix shipped with the new package name. **To resolve:** `npm install -g clawhub@latest` (no `d` in the name). This issue can likely be closed as resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/clawhub#25