openclaw - 💡(How to fix) Fix [Bug]: npm install -g openclaw@latest fails with missing module '@larksuiteoapi/node-sdk' and 'nostr-tools' on fresh macOS and Ubuntu environments [26 comments, 20 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#70457Fetched 2026-04-24 05:57:49
View on GitHub
Comments
26
Participants
20
Timeline
35
Reactions
3

Fresh installation using npm install -g openclaw@latest fails during initial setup because required extension dependencies such as @larksuiteoapi/node-sdk and nostr-tools are missing from the global package installation.

<img width="1270" height="256" alt="Image" src="https://github.com/user-attachments/assets/8a5f41d9-638a-4c11-9383-d32ac1c57b57" /> <img width="927" height="489" alt="Image" src="https://github.com/user-attachments/assets/7178a4c6-89f7-41a7-9284-18287fd35fab" />

Error Message

macOS and Ubuntu both reproduce the same issue.

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

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

Additional reproduction also shows:

Error: Cannot find module 'nostr-tools'

This strongly suggests the published npm package is missing extension dependencies required by default startup.

Root Cause

Fresh installation using npm install -g openclaw@latest fails during initial setup because required extension dependencies such as @larksuiteoapi/node-sdk and nostr-tools are missing from the global package installation.

Code Example

macOS and Ubuntu both reproduce the same issue.

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

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

Additional reproduction also shows:

Error: Cannot find module 'nostr-tools'

This strongly suggests the published npm package is missing extension dependencies required by default startup.
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Fresh installation using npm install -g openclaw@latest fails during initial setup because required extension dependencies such as @larksuiteoapi/node-sdk and nostr-tools are missing from the global package installation.

<img width="1270" height="256" alt="Image" src="https://github.com/user-attachments/assets/8a5f41d9-638a-4c11-9383-d32ac1c57b57" /> <img width="927" height="489" alt="Image" src="https://github.com/user-attachments/assets/7178a4c6-89f7-41a7-9284-18287fd35fab" />

Steps to reproduce

  1. Prepare a clean environment on macOS or Ubuntu 22.04.

  2. Install Node.js using nvm (tested with Node v22.22.2 and v24.15.0).

  3. Run:

    npm install -g openclaw@latest

  4. Start OpenClaw:

    openclaw onboard --install-daemon

  5. Complete the model provider setup (tested with Z.AI / GLM-5.1).

  6. Observe the startup failure:

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

or

Error: Cannot find module 'nostr-tools'

Expected behavior

OpenClaw should complete initialization successfully after installation without requiring manual installation of hidden extension dependencies.

Actual behavior

OpenClaw crashes during startup after model configuration and fails with missing module errors from extension loaders.

Examples:

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

Require stack: .../openclaw/dist/extensions/feishu/client-*.js

and

Error: Cannot find module 'nostr-tools'

Require stack: .../openclaw/dist/extensions/nostr/setup-surface-*.js

OpenClaw version

2026.4.21 (f788c88)

Operating system

macOS + Ubuntu 22.04

Install method

npm global installation

Model

zai/glm-5.1

Provider / routing chain

openclaw -> Z.AI

Additional provider/model setup details

Issue occurs before actual model usage. The failure happens immediately after model configuration during OpenClaw initialization.

This issue is unrelated to API key validity and reproduces consistently across different Node.js versions and clean environments.

Logs, screenshots, and evidence

macOS and Ubuntu both reproduce the same issue.

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

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

Additional reproduction also shows:

Error: Cannot find module 'nostr-tools'

This strongly suggests the published npm package is missing extension dependencies required by default startup.

Impact and severity

Affected: all users installing OpenClaw via npm global install

Severity: High (blocks first-time setup)

Frequency: 100% reproducible across multiple fresh environments

Consequence: users cannot complete initial setup or launch OpenClaw successfully without manually debugging hidden dependency issues

<img width="881" height="504" alt="Image" src="https://github.com/user-attachments/assets/cacc87ac-1b33-4b4f-bbda-2b975ba93c65" /> <img width="1270" height="256" alt="Image" src="https://github.com/user-attachments/assets/d13d16b3-ee97-4910-b2bb-0d81418a5cf9" /> <img width="864" height="280" alt="Image" src="https://github.com/user-attachments/assets/8cce6ffd-2d20-4da3-b4d4-cfc839f7d7ec" />

Additional information

Tested across:

  • macOS fresh environment

  • Ubuntu 22.04 fresh environment

  • Node.js v22.22.2

  • Node.js v24.15.0

Changing Node.js version does not resolve the issue.

I inspected the published global package at $(npm root -g)/openclaw/package.json.

package.json

The installed package does not declare @larksuiteoapi/node-sdk or nostr-tools in dependencies, while runtime code in dist/extensions/feishu/* and dist/extensions/nostr/* requires them.

Additionally, the published package explicitly excludes extension-local node_modules via:

  • !dist/extensions/node_modules/**

  • !dist/extensions/*/node_modules/**

This appears to be a package publishing issue where extension dependencies are not included correctly in the npm release.

Manual installation of missing dependencies partially works, which further suggests this is caused by missing dependency declarations in the published npm package rather than a local environment issue.

<img width="864" height="280" alt="Image" src="https://github.com/user-attachments/assets/abe05d11-a2ea-44a8-9130-165ce398c921" />

extent analysis

TL;DR

The most likely fix is to update the openclaw package to include the missing dependencies @larksuiteoapi/node-sdk and nostr-tools in its dependencies list.

Guidance

  • Verify that the package.json file of the published openclaw package does not include @larksuiteoapi/node-sdk and nostr-tools in its dependencies list.
  • Check if the exclusion patterns !dist/extensions/node_modules/** and !dist/extensions/*/node_modules/** in the package's publishing configuration are causing the dependencies to be omitted.
  • Consider manually installing the missing dependencies to confirm that this resolves the issue.
  • Review the package's build and publishing process to ensure that all required dependencies are properly included.

Example

No code snippet is provided as the issue is related to package dependencies and publishing configuration.

Notes

The issue appears to be specific to the openclaw package and its publishing process, rather than a general Node.js or npm issue. The fact that manual installation of missing dependencies partially works suggests that the problem is with the package's dependency declarations.

Recommendation

Apply a workaround by manually installing the missing dependencies @larksuiteoapi/node-sdk and nostr-tools until the openclaw package is updated to include them in its dependencies list. This will allow users to complete the initial setup and launch OpenClaw successfully.

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 should complete initialization successfully after installation without requiring manual installation of hidden extension 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