openclaw - ✅(Solved) Fix [Bug]: OpenClaw 2026.4.21 update leaves broken install: missing @larksuiteoapi/node-sdk, then postinstall fails on unsafe dist entry ... fxparser [1 pull requests, 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#70343Fetched 2026-04-23 07:26:01
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Author
Participants
Timeline (top)
labeled ×2closed ×1commented ×1cross-referenced ×1

Updating OpenClaw from 2026.4.15 to 2026.4.21 succeeded at the package-version level, but the installation was left broken.

After restart, openclaw status --deep failed with a missing module error:

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempting to repair the install with npm install hit a peer dependency conflict, and npm install --legacy-peer-deps then failed in OpenClaw’s postinstall script with:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

So the update path appears to leave the install in a broken state, and the obvious repair path also fails.

Environment

• OpenClaw before update: 2026.4.15
• OpenClaw target version: 2026.4.21
• OS: Linux
• Node: v22.22.2
• Install path: /home/claw/.npm-global/lib/node_modules/openclaw

What I ran

Update

openclaw update --yes

This reported:

• Before: 2026.4.15
• After: 2026.4.21

Restart / verify

openclaw gateway restart
openclaw status --deep

First failure

openclaw status --deep failed with:

[openclaw] Failed to start CLI: Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempted repair

Plain npm install

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install

This failed with ERESOLVE around:

[email protected]
[email protected]
• peerOptional typescript@"^5.4.4"

Legacy peer deps fallback

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install --legacy-peer-deps

This got past the peer conflict, but failed in postinstall:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser
    at listInstalledDistFiles (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:203:15)
    at pruneInstalledPackageDist (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:289:26)
    at runBundledPluginPostinstall (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:709:27)

Error Message

Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempting to repair the install with npm install hit a peer dependency conflict, and npm install --legacy-peer-deps then failed in OpenClaw’s postinstall script with:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

So the update path appears to leave the install in a broken state, and the obvious repair path also fails.

Environment

• OpenClaw before update: 2026.4.15 • OpenClaw target version: 2026.4.21 • OS: Linux • Node: v22.22.2 • Install path: /home/claw/.npm-global/lib/node_modules/openclaw

What I ran

Update

openclaw update --yes

This reported:

• Before: 2026.4.15 • After: 2026.4.21

Restart / verify

openclaw gateway restart openclaw status --deep

First failure

openclaw status --deep failed with:

[openclaw] Failed to start CLI: Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempted repair

Plain npm install

cd /home/claw/.npm-global/lib/node_modules/openclaw npm install

This failed with ERESOLVE around:

[email protected][email protected] • peerOptional typescript@"^5.4.4"

Legacy peer deps fallback

cd /home/claw/.npm-global/lib/node_modules/openclaw npm install --legacy-peer-deps

This got past the peer conflict, but failed in postinstall:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser at listInstalledDistFiles (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:203:15) at pruneInstalledPackageDist (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:289:26) at runBundledPluginPostinstall (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:709:27)

Expected behavior

• openclaw update --yes should leave the install in a working state • openclaw status --deep should run successfully after restart • repair steps should not fail on missing packaged dependencies or postinstall dist-pruning checks

Actual behavior

• update claims success • restart happens • CLI is broken by missing packaged dependency • repair path fails on postinstall script safety check

OpenClaw version

2026.4.21 (f788c88)

Operating system

Linux 6.8.0-110-generic (x64)

Install method

npm global

Model

N/A — failure occurs in CLI/update/install path before model execution

Provider / routing chain

N/A — CLI/update/install failure before provider selection or model routing Configured routing at time of failure: primary anthropic/claude-sonnet-4-6, with fallbacks including openai-codex/gpt-5.4, groq/llama-3.3-70b-versatile, and ollama/qwen2.5-coder:7b.

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Root Cause

Updating OpenClaw from 2026.4.15 to 2026.4.21 succeeded at the package-version level, but the installation was left broken.

After restart, openclaw status --deep failed with a missing module error:

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempting to repair the install with npm install hit a peer dependency conflict, and npm install --legacy-peer-deps then failed in OpenClaw’s postinstall script with:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

So the update path appears to leave the install in a broken state, and the obvious repair path also fails.

Environment

• OpenClaw before update: 2026.4.15
• OpenClaw target version: 2026.4.21
• OS: Linux
• Node: v22.22.2
• Install path: /home/claw/.npm-global/lib/node_modules/openclaw

What I ran

Update

openclaw update --yes

This reported:

• Before: 2026.4.15
• After: 2026.4.21

Restart / verify

openclaw gateway restart
openclaw status --deep

First failure

openclaw status --deep failed with:

[openclaw] Failed to start CLI: Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempted repair

Plain npm install

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install

This failed with ERESOLVE around:

[email protected]
[email protected]
• peerOptional typescript@"^5.4.4"

Legacy peer deps fallback

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install --legacy-peer-deps

This got past the peer conflict, but failed in postinstall:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser
    at listInstalledDistFiles (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:203:15)
    at pruneInstalledPackageDist (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:289:26)
    at runBundledPluginPostinstall (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:709:27)

Fix Action

Fixed

PR fix notes

PR #70339: fix(feishu): lazy-load setup client to avoid missing staged runtime deps during onboard

Description (problem / solution / changelog)

Summary

This fixes onboarding failures where Feishu setup paths eagerly loaded @larksuiteoapi/node-sdk before staged runtime dependencies were installed.

The fix makes Feishu client loading lazy in setup/tool-registration code paths, so openclaw onboard can load plugin setup surfaces without requiring Feishu runtime deps up front.

Fixes #70338, #70346, #70343

Root Cause

onboard loads bundled setup entries, which pulled Feishu modules with static imports of ./client.js, which in turn statically imported @larksuiteoapi/node-sdk.
Because this dependency is staged runtime-owned, it may not exist yet at setup-load time.

What Changed

  • Converted setup-path client acquisition to dynamic import / async flow across Feishu tool modules.
  • Updated callers to await async client getters.
  • Kept runtime behavior unchanged once clients are actually used.

Validation

  • pnpm tsgo:prod passed.
  • pnpm openclaw onboard --help now starts successfully without module-load failure.
  • Repro before: Cannot find module '@larksuiteoapi/node-sdk' in onboard setup load path.

Changed files

  • extensions/feishu/src/bitable.ts (modified, +9/-9)
  • extensions/feishu/src/chat.ts (modified, +5/-3)
  • extensions/feishu/src/comment-reaction.ts (modified, +2/-1)
  • extensions/feishu/src/docx.ts (modified, +3/-3)
  • extensions/feishu/src/drive.ts (modified, +1/-1)
  • extensions/feishu/src/perm.ts (modified, +1/-1)
  • extensions/feishu/src/tool-account.ts (modified, +3/-3)
  • extensions/feishu/src/wiki.ts (modified, +1/-1)

Code Example

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempting to repair the install with npm install hit a peer dependency conflict, and npm install --legacy-peer-deps then failed in OpenClaw’s postinstall script with:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

So the update path appears to leave the install in a broken state, and the obvious repair path also fails.

Environment

OpenClaw before update: 2026.4.15
OpenClaw target version: 2026.4.21
OS: Linux
Node: v22.22.2
Install path: /home/claw/.npm-global/lib/node_modules/openclaw

What I ran

Update

openclaw update --yes

This reported:

Before: 2026.4.15
After: 2026.4.21

Restart / verify

openclaw gateway restart
openclaw status --deep

First failure

openclaw status --deep failed with:

[openclaw] Failed to start CLI: Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempted repair

Plain npm install

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install

This failed with ERESOLVE around:

• madge@8.0.0
• typescript@6.0.3
• peerOptional typescript@"^5.4.4"

Legacy peer deps fallback

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install --legacy-peer-deps

This got past the peer conflict, but failed in postinstall:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser
    at listInstalledDistFiles (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:203:15)
    at pruneInstalledPackageDist (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:289:26)
    at runBundledPluginPostinstall (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:709:27)

### Expected behavior

• openclaw update --yes should leave the install in a working state
• openclaw status --deep should run successfully after restart
• repair steps should not fail on missing packaged dependencies or postinstall dist-pruning checks


### Actual behavior

• update claims success
• restart happens
CLI is broken by missing packaged dependency
• repair path fails on postinstall script safety check

### OpenClaw version

2026.4.21 (f788c88)

### Operating system

Linux 6.8.0-110-generic (x64)

### Install method

npm global

### Model

N/A — failure occurs in CLI/update/install path before model execution

### Provider / routing chain

N/ACLI/update/install failure before provider selection or model routing  Configured routing at time of failure: primary anthropic/claude-sonnet-4-6, with fallbacks including openai-codex/gpt-5.4, groq/llama-3.3-70b-versatile, and ollama/qwen2.5-coder:7b.

### Additional provider/model setup details

_No response_

### Logs, screenshots, and evidence
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After updating OpenClaw from 2026.4.15 to 2026.4.21, openclaw status --deep fails with missing module @larksuiteoapi/node-sdk, and npm install --legacy-peer-deps then fails in postinstall on an unsafe dist entry under dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser.

Steps to reproduce

Summary

Updating OpenClaw from 2026.4.15 to 2026.4.21 succeeded at the package-version level, but the installation was left broken.

After restart, openclaw status --deep failed with a missing module error:

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempting to repair the install with npm install hit a peer dependency conflict, and npm install --legacy-peer-deps then failed in OpenClaw’s postinstall script with:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

So the update path appears to leave the install in a broken state, and the obvious repair path also fails.

Environment

• OpenClaw before update: 2026.4.15
• OpenClaw target version: 2026.4.21
• OS: Linux
• Node: v22.22.2
• Install path: /home/claw/.npm-global/lib/node_modules/openclaw

What I ran

Update

openclaw update --yes

This reported:

• Before: 2026.4.15
• After: 2026.4.21

Restart / verify

openclaw gateway restart
openclaw status --deep

First failure

openclaw status --deep failed with:

[openclaw] Failed to start CLI: Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/claw/.npm-global/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Attempted repair

Plain npm install

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install

This failed with ERESOLVE around:

[email protected]
[email protected]
• peerOptional typescript@"^5.4.4"

Legacy peer deps fallback

cd /home/claw/.npm-global/lib/node_modules/openclaw
npm install --legacy-peer-deps

This got past the peer conflict, but failed in postinstall:

Error: unsafe dist entry: dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser
    at listInstalledDistFiles (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:203:15)
    at pruneInstalledPackageDist (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:289:26)
    at runBundledPluginPostinstall (file:///home/claw/.npm-global/lib/node_modules/openclaw/scripts/postinstall-bundled-plugins.mjs:709:27)

### Expected behavior

• openclaw update --yes should leave the install in a working state
• openclaw status --deep should run successfully after restart
• repair steps should not fail on missing packaged dependencies or postinstall dist-pruning checks


### Actual behavior

• update claims success
• restart happens
• CLI is broken by missing packaged dependency
• repair path fails on postinstall script safety check

### OpenClaw version

2026.4.21 (f788c88)

### Operating system

Linux 6.8.0-110-generic (x64)

### Install method

npm global

### Model

N/A — failure occurs in CLI/update/install path before model execution

### Provider / routing chain

N/A — CLI/update/install failure before provider selection or model routing  Configured routing at time of failure: primary anthropic/claude-sonnet-4-6, with fallbacks including openai-codex/gpt-5.4, groq/llama-3.3-70b-versatile, and ollama/qwen2.5-coder:7b.

### Additional provider/model setup details

_No response_

### Logs, screenshots, and evidence

```shell

Impact and severity

No response

Additional information

Updated from 2026.4.15 to 2026.4.21 via openclaw update --yes.

  1. missing bundled dependency for Feishu extension (@larksuiteoapi/node-sdk)
  2. postinstall script rejecting a .bin entry under dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser

2026-04-22T20_42_16_849Z-debug-0.log

2026-04-22T20_46_07_089Z-debug-0.log

extent analysis

TL;DR

The most likely fix is to manually install the missing @larksuiteoapi/node-sdk module and then address the postinstall script issue by removing the unsafe dist entry.

Guidance

  • Manually install the missing @larksuiteoapi/node-sdk module using npm install @larksuiteoapi/node-sdk to resolve the initial error.
  • Remove the unsafe dist entry dist/extensions/amazon-bedrock-mantle/node_modules/.bin/fxparser to prevent the postinstall script from failing.
  • Run npm install --legacy-peer-deps again after addressing the above issues to ensure all dependencies are installed correctly.
  • Verify the installation by running openclaw status --deep to ensure the CLI is working as expected.

Example

No specific code snippet is provided as the issue is related to dependency installation and postinstall script errors.

Notes

The provided solution assumes that the missing module and postinstall script issue are the primary causes of the problem. However, there might be other underlying issues that need to be addressed. It's recommended to review the logs and debug files for more information.

Recommendation

Apply the workaround by manually installing the missing module and addressing the postinstall script issue, as the root cause of the problem seems to be related to dependency installation and script errors.

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 update --yes should leave the install in a working state • openclaw status --deep should run successfully after restart • repair steps should not fail on missing packaged dependencies or postinstall dist-pruning checks

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]: OpenClaw 2026.4.21 update leaves broken install: missing @larksuiteoapi/node-sdk, then postinstall fails on unsafe dist entry ... fxparser [1 pull requests, 1 comments, 2 participants]