Skip to content

fix: auto-install extension dependencies on npm install#1

Merged
usertlm merged 1 commit intomainfrom
fix/auto-install-extension-deps
Feb 27, 2026
Merged

fix: auto-install extension dependencies on npm install#1
usertlm merged 1 commit intomainfrom
fix/auto-install-extension-deps

Conversation

@usertlm
Copy link
Copy Markdown
Owner

@usertlm usertlm commented Feb 27, 2026

Summary

This PR adds a postinstall script that automatically installs npm dependencies for all bundled extensions that have their own package.json with dependencies (e.g., memory-lancedb, diagnostics-otel, feishu, matrix, etc.).

Problem

Without this fix, extensions with dependencies are broken out of the box because their node_modules are not installed during 'npm install -g openclaw'. This was reported in issue openclaw#28792.

Solution

Add a postinstall script that:

  1. Scans all extensions in the extensions/ directory
  2. Checks if each extension has a package.json with dependencies
  3. Runs npm install --omit=dev --ignore-scripts for those extensions

Files Changed

  • package.json: Added postinstall script
  • scripts/install-extensions-deps.js: New script to install extension dependencies

Testing

Extensions with dependencies that will benefit from this fix:

Closes openclaw#28792

This adds a postinstall script that automatically installs npm
dependencies for all bundled extensions that have their own
package.json with dependencies (e.g., memory-lancedb, diagnostics-otel,
feishu, matrix, etc.).

Without this, extensions with dependencies are broken out of the box
because their node_modules are not installed during 'npm install -g openclaw'.

Fixes openclaw#28792
@usertlm usertlm merged commit 5f2db9a into main Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

memory-lancedb plugin dependencies not installed on install/update

1 participant