Description
After installing OpenClaw globally via npm (npm install -g openclaw@latest), the msteams plugin fails to start with:
Cannot find module '@microsoft/agents-hosting'
Steps to Reproduce
- Install OpenClaw globally:
npm install -g openclaw@latest
- Configure msteams channel in openclaw.json
- Start gateway:
openclaw gateway
- Check logs: msteams channel exits immediately with missing module error
Root Cause
The extensions/msteams/package.json has dependencies:
{
"dependencies": {
"@microsoft/agents-hosting": "^1.2.3",
"@microsoft/agents-hosting-express": "^1.2.3",
"@microsoft/agents-hosting-extensions-teams": "^1.2.3",
"openclaw": "workspace:*"
}
}
The workspace:* protocol is pnpm-specific. When installed via npm globally, npm doesn't resolve plugin dependencies, leaving the Microsoft SDK packages missing.
Workaround
Manually install the dependencies:
cd ~/.npm-global/lib/node_modules/openclaw
npm install @microsoft/agents-hosting@^1.2.3 @microsoft/agents-hosting-express@^1.2.3 @microsoft/agents-hosting-extensions-teams@^1.2.3
Expected Behavior
The msteams plugin should work out of the box after npm install -g openclaw.
Environment
- OpenClaw version: 2026.2.2-3
- OS: Ubuntu 24.04
- Node: v22.22.0
- Install method: npm global
Suggested Fix
Either:
- Hoist msteams dependencies to the main package.json, or
- Replace
workspace:* with * in published npm builds, or
- Bundle the Microsoft SDK into the extension
Description
After installing OpenClaw globally via npm (
npm install -g openclaw@latest), the msteams plugin fails to start with:Steps to Reproduce
npm install -g openclaw@latestopenclaw gatewayRoot Cause
The
extensions/msteams/package.jsonhas dependencies:{ "dependencies": { "@microsoft/agents-hosting": "^1.2.3", "@microsoft/agents-hosting-express": "^1.2.3", "@microsoft/agents-hosting-extensions-teams": "^1.2.3", "openclaw": "workspace:*" } }The
workspace:*protocol is pnpm-specific. When installed via npm globally, npm doesn't resolve plugin dependencies, leaving the Microsoft SDK packages missing.Workaround
Manually install the dependencies:
Expected Behavior
The msteams plugin should work out of the box after
npm install -g openclaw.Environment
Suggested Fix
Either:
workspace:*with*in published npm builds, or