Skip to content

install.sh: claude-code postinstall blocked by npm allowScripts leaves a dead wrapper #102

Description

@naashw

Seen on the first production server install: npm 10.9.8 with allowScripts blocked @anthropic-ai/claude-code's postinstall (the one that downloads the native binary). command -v claude passes (the JS wrapper exists) so install.sh continued, and every later agent run died with exit 1 ('claude native binary not installed'), surfacing as 'drafting agent failed' on the very first arm-mode ticket request.

Fix install.sh: (1) pass --allow-scripts=@anthropic-ai/claude-code (or run node .../install.cjs afterwards) when installing; (2) verify the install with a real claude --version execution instead of command -v, and fail loud with the manual postinstall command in the message.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions