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

1 messages · Page 1 of 1 (latest)

sturdy umbra
#

I'm trying to add an agent with command "openclaw agents add weather" but after being asked by the setup "Configure model/auth for this agent now?" it will always error out saying this:

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

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

System details:
Operating System: Ubuntu 24.04.4 LTS
Kernel: Linux 6.17.0-20-generic
Architecture: x86-64

leaden zodiacBOT
upbeat wyvernBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

leaden zodiacBOT
sturdy umbra
#

I forgot to tell, it happened only after updating from v2026.4.15 to v2026.4.21

bitter spindleBOT
#

Let me check the package/source side, this smells like a packaging bug rather than your weather agent config.

#

That should not happen. weather is just tripping over an unrelated bundled Feishu dependency during the generic setup flow.

First, please paste:

openclaw --version

Then try this:

openclaw doctor --fix
openclaw gateway restart
openclaw agents add weather

If you are not on the latest release, update first:

#
openclaw doctor --fix
#

Ah, that helps. Then this really does look like an update-path regression around bundled plugin runtime deps, not anything specific to the weather agent.

Try this exact order:

openclaw doctor --fix
openclaw gateway restart
openclaw agents add weather

If you are still on 2026.4.21, I would also update again and rerun doctor:

openclaw update
openclaw doctor --fix
openclaw gateway restart
#

If it still breaks on the latest release, paste:

openclaw --version
openclaw status --all
openclaw doctor --fix

and that is probably GitHub issue territory.

sturdy umbra
#

I already have other agents running and working fine. My issue is when creating the new agent. I've already done "openclaw doctor --fix" and restarted the gateway. I've also tried with selecting "No" when being asked to configure model/auth for the new agent but still nothing.

bitter spindleBOT
#

Let me check the agents add path itself. If the interactive flow is touching channel setup code up front, there may be a cleaner bypass.

#

Got it, thanks, that changes the recommendation.

If doctor --fix and answering No both still fail, then the problem is probably the interactive agents add flow itself. It keeps going into channel setup afterward, and that is likely where the bundled Feishu plugin is exploding.

Try the non-interactive path instead, which bypasses that wizard path:

openclaw agents add weather --workspace ~/.openclaw/workspace-weather --non-interactive

If you want to set a model at creation time, add:

--model <same-model-you-use-on-a-working-agent>

So for example:

#
openclaw agents add weather --workspace ~/.openclaw/workspace-weather --non-interactive --model <your-model>

I would still move off 2026.4.21 when you can, but the command above is the best immediate workaround.

If that works, then this is pretty clearly an interactive agents add regression.

If it still fails even non-interactive, please paste:

openclaw --version
openclaw agents add weather --workspace ~/.openclaw/workspace-weather --non-interactive

plus the full error. At that point I would file a GitHub issue here:
https://github.com/openclaw/openclaw/issues