Missing 'undici' dependency causes ERR_MODULE_NOT_FOUND #13

Open
opened 2026-02-15 17:15:04 -05:00 by yindo · 5 comments
Owner

Originally created by @RonanCodes on GitHub (Jan 24, 2026).

Description

Running pnpm dlx clawdhub@latest install sonoscli fails with a missing module error.

Error

node:internal/modules/package_json_reader:316
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'undici' imported from /home/clawdbot/.cache/pnpm/dlx/cb8818cfd01847cec60410679d479dfa1219cd125df656fd97fc38a772c05a53/19bf35e2de9-7d37/node_modules/.pnpm/clawdhub@0.3.0/node_modules/clawdhub/dist/http.js
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:316:9)
    at packageResolve (node:internal/modules/esm/resolve:768:81)
    at moduleResolve (node:internal/modules/esm/resolve:858:18)
    at defaultResolve (node:internal/modules/esm/resolve:990:11)
    ...

Environment

  • Node: v24.13.0
  • pnpm: v10.23.0
  • OS: Ubuntu Linux (x86_64)
  • clawdhub version: 0.3.0

Expected behavior

The undici package should be listed as a dependency in package.json so it's installed when the package is used.

Suggested fix

Add undici to dependencies in package.json.

Originally created by @RonanCodes on GitHub (Jan 24, 2026). ## Description Running `pnpm dlx clawdhub@latest install sonoscli` fails with a missing module error. ## Error ``` node:internal/modules/package_json_reader:316 throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'undici' imported from /home/clawdbot/.cache/pnpm/dlx/cb8818cfd01847cec60410679d479dfa1219cd125df656fd97fc38a772c05a53/19bf35e2de9-7d37/node_modules/.pnpm/clawdhub@0.3.0/node_modules/clawdhub/dist/http.js at Object.getPackageJSONURL (node:internal/modules/package_json_reader:316:9) at packageResolve (node:internal/modules/esm/resolve:768:81) at moduleResolve (node:internal/modules/esm/resolve:858:18) at defaultResolve (node:internal/modules/esm/resolve:990:11) ... ``` ## Environment - Node: v24.13.0 - pnpm: v10.23.0 - OS: Ubuntu Linux (x86_64) - clawdhub version: 0.3.0 ## Expected behavior The `undici` package should be listed as a dependency in `package.json` so it's installed when the package is used. ## Suggested fix Add `undici` to `dependencies` in `package.json`.
Author
Owner

@RonanCodes commented on GitHub (Jan 24, 2026):

Also confirmed this happens with both pnpm dlx and npx - so it's not package-manager specific.

@RonanCodes commented on GitHub (Jan 24, 2026): Also confirmed this happens with both `pnpm dlx` and `npx` - so it's not package-manager specific.
Author
Owner

@bravestonetech commented on GitHub (Jan 25, 2026):

I guess next release will fix it. The fix is already merged to master https://github.com/clawdbot/clawdhub/commit/5d9a89a885f86960b9d9c71f0231ded16c2cbb44#diff-a3494594e9dd5477c47bf3a707e656072c8c853ba7f5550fd0041bd9545e813aR32

@bravestonetech commented on GitHub (Jan 25, 2026): I guess next release will fix it. The fix is already merged to master https://github.com/clawdbot/clawdhub/commit/5d9a89a885f86960b9d9c71f0231ded16c2cbb44#diff-a3494594e9dd5477c47bf3a707e656072c8c853ba7f5550fd0041bd9545e813aR32
Author
Owner

@Stephonomon commented on GitHub (Jan 26, 2026):

Occuring with me.

@Stephonomon commented on GitHub (Jan 26, 2026): Occuring with me.
Author
Owner

@bravestonetech commented on GitHub (Jan 26, 2026):

As a workaround, you could run npm install -g undici to fix this

@bravestonetech commented on GitHub (Jan 26, 2026): As a workaround, you could run `npm install -g undici` to fix this
Author
Owner

@ThisIsJeron commented on GitHub (Jan 27, 2026):

As a workaround, you could run npm install -g undici to fix this

correct but its an annoyance, hope this small fix is done soon

@ThisIsJeron commented on GitHub (Jan 27, 2026): > As a workaround, you could run `npm install -g undici` to fix this correct but its an annoyance, hope this small fix is done soon
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/clawhub#13