openclaw - 💡(How to fix) Fix [Bug]: openclaw onboard --install-daemon error "Did you mean to import "tslog/cjs/index.js"?" [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#63024Fetched 2026-04-09 07:59:25
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

root@i-69c243f6aa1c6e1bccc751dc:/ai# openclaw onboard --install-daemon node:internal/modules/run_main:107 triggerUncaughtException( ^

Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js Did you mean to import "tslog/cjs/index.js"? at legacyMainResolve (node:internal/modules/esm/resolve:205:26) at packageResolve (node:internal/modules/esm/resolve:778:12) at moduleResolve (node:internal/modules/esm/resolve:859:18) at defaultResolve (node:internal/modules/esm/resolve:991:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52) at #resolve (node:internal/modules/esm/loader:701:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v24.14.0 root@i-69c243f6aa1c6e1bccc751dc:/ai#

Error Message

Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js

Root Cause

root@i-69c243f6aa1c6e1bccc751dc:/ai# openclaw onboard --install-daemon node:internal/modules/run_main:107 triggerUncaughtException( ^

Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js Did you mean to import "tslog/cjs/index.js"? at legacyMainResolve (node:internal/modules/esm/resolve:205:26) at packageResolve (node:internal/modules/esm/resolve:778:12) at moduleResolve (node:internal/modules/esm/resolve:859:18) at defaultResolve (node:internal/modules/esm/resolve:991:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52) at #resolve (node:internal/modules/esm/loader:701:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v24.14.0 root@i-69c243f6aa1c6e1bccc751dc:/ai#

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

root@i-69c243f6aa1c6e1bccc751dc:/ai# openclaw onboard --install-daemon node:internal/modules/run_main:107 triggerUncaughtException( ^

Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js Did you mean to import "tslog/cjs/index.js"? at legacyMainResolve (node:internal/modules/esm/resolve:205:26) at packageResolve (node:internal/modules/esm/resolve:778:12) at moduleResolve (node:internal/modules/esm/resolve:859:18) at defaultResolve (node:internal/modules/esm/resolve:991:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52) at #resolve (node:internal/modules/esm/loader:701:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v24.14.0 root@i-69c243f6aa1c6e1bccc751dc:/ai#

Steps to reproduce

root@i-69c243f6aa1c6e1bccc751dc:/ai# openclaw onboard --install-daemon node:internal/modules/run_main:107 triggerUncaughtException( ^

Error: Cannot find package '/root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/node_modules/tslog/index.js' imported from /root/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/openclaw/dist/logger--Y4fLUmQ.js Did you mean to import "tslog/cjs/index.js"? at legacyMainResolve (node:internal/modules/esm/resolve:205:26) at packageResolve (node:internal/modules/esm/resolve:778:12) at moduleResolve (node:internal/modules/esm/resolve:859:18) at defaultResolve (node:internal/modules/esm/resolve:991:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52) at #resolve (node:internal/modules/esm/loader:701:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v24.14.0 root@i-69c243f6aa1c6e1bccc751dc:/ai#

Expected behavior

openclaw run

Actual behavior

openclaw onboard can run

OpenClaw version

2026.4.8

Operating system

ubuntu 24.04

Install method

pnpm

Model

chatgpt

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue is likely due to an incompatible import statement in the openclaw package, and a potential workaround is to update the import statement to use the suggested path tslog/cjs/index.js.

Guidance

  • The error message suggests that the issue is related to the tslog package, specifically with the import statement in the openclaw package.
  • The suggested import path tslog/cjs/index.js may resolve the issue, but this would require modifying the openclaw package code.
  • Another potential solution is to check the compatibility of the openclaw package with the current Node.js version (v24.14.0) and the pnpm install method.
  • Verify that the tslog package is installed correctly and is compatible with the openclaw package.

Example

No code example is provided as the issue is related to a third-party package and modifying its code is not recommended.

Notes

The issue may be related to a version compatibility problem between the openclaw package and its dependencies, specifically tslog. The suggested import path may not be the only solution, and further investigation is required to determine the root cause.

Recommendation

Apply workaround: Update the import statement to use the suggested path tslog/cjs/index.js or investigate alternative solutions to resolve the compatibility issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

openclaw run

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING