When running clawdhub@latest via bunx, the CLI fails immediately because the undici package cannot be resolved.
Command
Error
node:internal/modules/package_json_reader:314
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'undici' imported from /private/var/folders/37/3vbr_23x09z99btsc3tjyn1r0000gn/T/bunx-501-clawdhub@latest/node_modules/clawdhub/dist/http.js
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
at packageResolve (node:internal/modules/esm/resolve:768:81)
at moduleResolve (node:internal/modules/esm/resolve:855:18)
at defaultResolve (node:internal/modules/esm/resolve:985:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:747:20)
at ModuleLoader.resolve (node:internal/modules/esm/loader:724:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:320:38)
at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Environment
- macOS
- Apple Silicon
- Node.js:
v22.23.1
- Package runner:
bunx
- Package:
clawdhub@latest
Expected behavior
The CLI should start normally when executed with:
Actual behavior
Execution stops immediately because clawdhub/dist/http.js imports undici, but undici is not available in the package installation created by bunx.
Possible cause
It appears that undici may be missing from the package's runtime dependencies, or it may only be listed as a development or optional dependency.
Could you please check whether undici needs to be added explicitly to the package's dependencies?
When running
clawdhub@latestviabunx, the CLI fails immediately because theundicipackage cannot be resolved.Command
Error
Environment
v22.23.1bunxclawdhub@latestExpected behavior
The CLI should start normally when executed with:
Actual behavior
Execution stops immediately because
clawdhub/dist/http.jsimportsundici, butundiciis not available in the package installation created bybunx.Possible cause
It appears that
undicimay be missing from the package's runtimedependencies, or it may only be listed as a development or optional dependency.Could you please check whether
undicineeds to be added explicitly to the package'sdependencies?