Skip to content

claude plugin eval fails every run with E2BIG when the plugin root has a large node_modules #109197

Open

Description

@NancyZeng0210

Claude Code 2.1.293 · macOS (Darwin 24.5.0) · Node 24.15.0

Steps

  1. A plugin repo with a pnpm-installed node_modules at the root (334 MB).
  2. claude plugin eval . --eval-dir tests/plugin-evals --trust-plugin --no-publish --runs 1

Result
Every run, including the no-plugin baseline arm, ends with turns: 0 and
error: "E2BIG: argument list too long, posix_spawn '<node>/lib/node_modules/@anthropic-ai/claude-code/bin/claude.exe'".
A one-line "say hello" case fails the same way.

Narrowing it down (copies of the same repo)

  • without .git and node_modules: runs fine
  • with .git added back: runs fine
  • with node_modules added back: E2BIG

Workaround: rsync the repo without node_modules to a temp dir and run the eval there.

Expected: the eval runs in the plugin root whether or not node_modules is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions