-
-
Notifications
You must be signed in to change notification settings - Fork 69.6k
Bug: Plugin dependencies (e.g. feishu plugin) are lost after npm pack + global installation #33723
Copy link
Copy link
Closed
Description
Describe the bug
When upgrading OpenClaw using physical packaging (npm pack followed by npm install -g ./openclaw-*.tgz), the dependencies of workspace plugins (like @larksuiteoapi/node-sdk in extensions/feishu) are not bundled into the tarball. This causes the installed global OpenClaw to fail at runtime when loading the plugin because the node modules for the extension are missing.
To Reproduce
- Run
npm packin the root directory. - Run
npm install -g ./openclaw-*.tgz. - Start the application or use the feishu plugin.
- See error:
Error: Cannot find module '@larksuiteoapi/node-sdk'
Expected behavior
The plugin's dependencies should be properly bundled or resolved during the global installation.
Workaround
Currently, we have to manually run npm install -g @larksuiteoapi/node-sdk after the OpenClaw global installation to restore the missing dependency.
Suggested Fix
Refactor the build/packaging mechanism so that either:
- The
bundledDependenciesinclude the required sub-module dependencies. - A custom build script recursively packs and injects the plugin dependencies into the main
package.jsonbeforenpm pack.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.