openclaw - 💡(How to fix) Fix [Bug]: TypeError: LRUCache is not a constructor

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…

09:20:02 [gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true, browser.ssrfPolicy.dangerouslyAllowPrivateNetwork=true. Run openclaw security audit. F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8 const cache = new LRUCache({ max: 1000 }) ^

TypeError: LRUCache is not a constructor at Object.<anonymous> (F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8:15) at Module._compile (node:internal/modules/cjs/loader:1761:14) at Object..js (node:internal/modules/cjs/loader:1893:10) at Module.load (node:internal/modules/cjs/loader:1481:32) at Module._load (node:internal/modules/cjs/loader:1300:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:245:24) at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:339:3) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:242:7) at ModuleJob.run (node:internal/modules/esm/module_job:413:25)

Node.js v24.13.0

Root Cause

09:20:02 [gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true, browser.ssrfPolicy.dangerouslyAllowPrivateNetwork=true. Run openclaw security audit. F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8 const cache = new LRUCache({ max: 1000 }) ^

TypeError: LRUCache is not a constructor at Object.<anonymous> (F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8:15) at Module._compile (node:internal/modules/cjs/loader:1761:14) at Object..js (node:internal/modules/cjs/loader:1893:10) at Module.load (node:internal/modules/cjs/loader:1481:32) at Module._load (node:internal/modules/cjs/loader:1300:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:245:24) at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:339:3) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:242:7) at ModuleJob.run (node:internal/modules/esm/module_job:413:25)

Node.js v24.13.0

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

09:20:02 [gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true, browser.ssrfPolicy.dangerouslyAllowPrivateNetwork=true. Run openclaw security audit. F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8 const cache = new LRUCache({ max: 1000 }) ^

TypeError: LRUCache is not a constructor at Object.<anonymous> (F:.pnpm-store\global\5.pnpm\[email protected]\node_modules\hosted-git-info\lib\index.js:8:15) at Module._compile (node:internal/modules/cjs/loader:1761:14) at Object..js (node:internal/modules/cjs/loader:1893:10) at Module.load (node:internal/modules/cjs/loader:1481:32) at Module._load (node:internal/modules/cjs/loader:1300:12) at TracingChannel.traceSync (node:diagnostics_channel:328:14) at wrapModuleLoad (node:internal/modules/cjs/loader:245:24) at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:339:3) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:242:7) at ModuleJob.run (node:internal/modules/esm/module_job:413:25)

Node.js v24.13.0

Steps to reproduce

openclaw gateway --port 18789 --verbose

Expected behavior

<img width="821" height="387" alt="Image" src="https://github.com/user-attachments/assets/df8542b3-5efe-4b92-829d-fe4b4016703c" />

Actual behavior

start

OpenClaw version

20260512

Operating system

wsl2

Install method

pnpm

Model

glm5.1

Provider / routing chain

vllm

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

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

<img width="821" height="387" alt="Image" src="https://github.com/user-attachments/assets/df8542b3-5efe-4b92-829d-fe4b4016703c" />

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: TypeError: LRUCache is not a constructor