openclaw - 💡(How to fix) Fix OPENCLAW_PLUGIN_STAGE_DIR with two paths: memory status fails on missing chokidar in second path [1 comments, 2 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#73815Fetched 2026-04-29 06:14:46
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

Code Example

OPENCLAW_PLUGIN_STAGE_DIR=/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

---

Memory: enabled (plugin memory-core) · unavailable

---

openclaw memory status

---

Cannot find package 'chokidar' imported from /data/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/dist/manager-ICKYl3BU.js

---

/opt/openclaw/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules/chokidar

---

/data/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules/chokidar
RAW_BUFFERClick to expand / collapse

OpenClaw version: 2026.4.26

Environment:

OPENCLAW_PLUGIN_STAGE_DIR=/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

Observed:

openclaw status shows:

Memory: enabled (plugin memory-core) · unavailable

Running:

openclaw memory status

fails with:

Cannot find package 'chokidar' imported from /data/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/dist/manager-ICKYl3BU.js

But chokidar exists in the first path:

/opt/openclaw/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules/chokidar

and is missing in the second path:

/data/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules/chokidar

Expected:

If OPENCLAW_PLUGIN_STAGE_DIR has multiple paths, OpenClaw should either use the path that contains the needed package, or fail with a clearer explanation of which path was selected and why.

extent analysis

TL;DR

The issue can be resolved by ensuring that the chokidar package is installed in both paths specified in the OPENCLAW_PLUGIN_STAGE_DIR environment variable.

Guidance

  • Verify that the chokidar package is installed in the first path /opt/openclaw/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules and try to install it in the second path /data/plugin-runtime-deps/openclaw-2026.4.26-f53b52ad6d21/node_modules to see if it resolves the issue.
  • Check the documentation of OpenClaw to see if there are any specific instructions for handling multiple paths in the OPENCLAW_PLUGIN_STAGE_DIR environment variable.
  • Consider setting the OPENCLAW_PLUGIN_STAGE_DIR environment variable to only include the path where the chokidar package is installed, to avoid any potential conflicts.
  • Test the openclaw memory status command after making any changes to the environment variable or package installations to verify that the issue is resolved.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue seems to be related to the way OpenClaw handles multiple paths in the OPENCLAW_PLUGIN_STAGE_DIR environment variable. The exact behavior may depend on the specific version of OpenClaw being used.

Recommendation

Apply workaround: Ensure that the chokidar package is installed in both paths specified in the OPENCLAW_PLUGIN_STAGE_DIR environment variable, or set the environment variable to only include the path where the package is installed. This should resolve the issue until a more permanent fix is available.

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…

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 OPENCLAW_PLUGIN_STAGE_DIR with two paths: memory status fails on missing chokidar in second path [1 comments, 2 participants]