Skip to content

Plugin cache missing dependencies on first run #66

@avifenesh

Description

@avifenesh

Problem

When the plugin is freshly cached (e.g., after install or cache refresh), npm install and npx playwright install chromium have not been run. Running any web-ctl command fails with:

{ "error": "action_error", "message": "Cannot find module 'playwright'" }

The user must manually run npm install and npx playwright install chromium in the plugin cache directory before the plugin works.

Expected Behavior

The plugin should either:

  1. Run dependency installation as a post-install hook when cached
  2. Detect missing dependencies on first run and install them automatically
  3. Document the setup step clearly in an error message with the exact commands needed

Reproduction

  1. Fresh plugin cache at ~/.claude/plugins/cache/agentsys/web-ctl/1.0.0/
  2. Run any web-ctl command
  3. Fails with "Cannot find module 'playwright'"

Impact

Blocks all web-ctl usage until manually resolved. No guidance in the error message on how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions