openclaw - ✅(Solved) Fix [Bug]: Bug: Missing dependency @larksuiteoapi/node-sdk causes Feishu extension to fail at runtime [1 pull requests, 4 comments, 3 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#70254Fetched 2026-04-23 07:27:10
View on GitHub
Comments
4
Participants
3
Timeline
10
Reactions
0
Author
Timeline (top)
commented ×4labeled ×2closed ×1cross-referenced ×1

【Issue Description】When running OpenClaw installed via npm on Linux, the application fails to start due to a missing dependency required by the Feishu (Lark) extension. 【Error Log】 plaintext Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/hjq/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js 【Reproduction Steps】 Environment: Ubuntu (Linux) Installation method: Global install via npm install -g openclaw Configuration: Set up MiniMax API key and default model Behavior: Application crashes on startup with the above module-not-found error, and the Feishu extension fails to load. 【Root Cause Analysis】The Feishu (Lark) extension file client-yWGpoGkZ.js in OpenClaw imports the @larksuiteoapi/node-sdk package, but this dependency is not listed in the project's package.json dependencies. As a result, it is not automatically installed during npm install, leading to the runtime error. 【Expected Fix】Please add @larksuiteoapi/node-sdk to the dependencies list in OpenClaw's package.json, so that all extension dependencies are automatically installed when users install the package via npm.

Error Message

【Error Log】 Error: Cannot find module '@larksuiteoapi/node-sdk' Behavior: Application crashes on startup with the above module-not-found error, and the Feishu extension fails to load. 【Root Cause Analysis】The Feishu (Lark) extension file client-yWGpoGkZ.js in OpenClaw imports the @larksuiteoapi/node-sdk package, but this dependency is not listed in the project's package.json dependencies. As a result, it is not automatically installed during npm install, leading to the runtime error.

Root Cause

【Issue Description】When running OpenClaw installed via npm on Linux, the application fails to start due to a missing dependency required by the Feishu (Lark) extension. 【Error Log】 plaintext Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/hjq/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js 【Reproduction Steps】 Environment: Ubuntu (Linux) Installation method: Global install via npm install -g openclaw Configuration: Set up MiniMax API key and default model Behavior: Application crashes on startup with the above module-not-found error, and the Feishu extension fails to load. 【Root Cause Analysis】The Feishu (Lark) extension file client-yWGpoGkZ.js in OpenClaw imports the @larksuiteoapi/node-sdk package, but this dependency is not listed in the project's package.json dependencies. As a result, it is not automatically installed during npm install, leading to the runtime error. 【Expected Fix】Please add @larksuiteoapi/node-sdk to the dependencies list in OpenClaw's package.json, so that all extension dependencies are automatically installed when users install the package via npm.

Fix Action

Fixed

PR fix notes

PR #70261: fix(feishu): add missing @larksuiteoapi/node-sdk dependency (#70254)

Description (problem / solution / changelog)

Summary

  • Problem: Feishu extension fails to load with Cannot find module '@larksuiteoapi/node-sdk' when OpenClaw is installed globally via npm.
  • Why it matters: The Feishu (Lark) extension requires this SDK but it was only declared in extensions/feishu/package.json, not in the main package.json dependencies.
  • What changed: Added @larksuiteoapi/node-sdk: ^1.60.0 to root package.json dependencies.

Change Type

  • Bug fix

Linked Issue

  • Fixes #70254

Security Impact

  • No new permissions or capabilities
  • Adds a legitimate dependency already used by the Feishu extension

Testing

  • Verified dependency version matches extensions/feishu/package.json (^1.60.0)
  • No code changes, only dependency addition

Changed files

  • extensions/ollama/index.test.ts (modified, +251/-119)
  • extensions/ollama/src/provider-models.ts (modified, +1/-1)
  • extensions/ollama/src/stream.ts (modified, +19/-7)
  • package.json (modified, +1/-0)
  • src/agents/model-auth-env-vars.test.ts (added, +51/-0)
  • src/agents/model-auth-env-vars.ts (modified, +12/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

【Issue Description】When running OpenClaw installed via npm on Linux, the application fails to start due to a missing dependency required by the Feishu (Lark) extension. 【Error Log】 plaintext Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/hjq/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js 【Reproduction Steps】 Environment: Ubuntu (Linux) Installation method: Global install via npm install -g openclaw Configuration: Set up MiniMax API key and default model Behavior: Application crashes on startup with the above module-not-found error, and the Feishu extension fails to load. 【Root Cause Analysis】The Feishu (Lark) extension file client-yWGpoGkZ.js in OpenClaw imports the @larksuiteoapi/node-sdk package, but this dependency is not listed in the project's package.json dependencies. As a result, it is not automatically installed during npm install, leading to the runtime error. 【Expected Fix】Please add @larksuiteoapi/node-sdk to the dependencies list in OpenClaw's package.json, so that all extension dependencies are automatically installed when users install the package via npm.

Steps to reproduce

yes

Expected behavior

Feature Request: Make optional extensions (e.g., Feishu/Lark) installable on demand instead of bundled dependencies

Actual behavior

The Feishu integration also provides a poor user experience in practice. Bundling too many optional plugins by default only slows down OpenClaw’s runtime performance, even for users who never use them.

OpenClaw version

2026.04.21

Operating system

ubuntu

Install method

npm全局

Model

minimax

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

Add @larksuiteoapi/node-sdk to the dependencies list in OpenClaw's package.json to resolve the missing dependency issue.

Guidance

  • Verify the package.json file of OpenClaw to confirm that @larksuiteoapi/node-sdk is not listed as a dependency.
  • Consider making optional extensions, such as Feishu/Lark, installable on demand to improve runtime performance and user experience.
  • Check if there are any other missing dependencies required by other extensions in OpenClaw.
  • Review the installation process to ensure that all dependencies are properly installed during npm install.

Example

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

Notes

The provided root cause analysis suggests that the issue is due to a missing dependency, and adding it to the package.json file should resolve the issue. However, it is also recommended to consider making optional extensions installable on demand to improve performance and user experience.

Recommendation

Apply workaround: Add @larksuiteoapi/node-sdk to the dependencies list in OpenClaw's package.json to resolve the immediate issue, and consider refactoring the extension installation process in the future.

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

Feature Request: Make optional extensions (e.g., Feishu/Lark) installable on demand instead of bundled dependencies

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 - ✅(Solved) Fix [Bug]: Bug: Missing dependency @larksuiteoapi/node-sdk causes Feishu extension to fail at runtime [1 pull requests, 4 comments, 3 participants]