Skip to content

v1.15.1+ Breaks Bun Installs #27906

@Silvenga

Description

@Silvenga

Description

I see that v1.15.1 now requires postinstall lifecycle scripts to run. Most package managers that aren't NPM block this by default these days. Bun doesn't allow users to run postinstall scripts for global packages.

Another issue is that bin/opencode.exe (renamed from opencode in v1.15.1) can't be executed directly under Linux (and I'm assuming Windows?) - so executing opencode just returns an exec error.

echo "Error: opencode-ai's postinstall script was not run." >&2
echo "" >&2
echo "This occurs when using --ignore-scripts during installation, or when using a" >&2
echo "package manager like pnpm that does not run postinstall scripts by default." >&2
echo "" >&2
echo "To fix this, run the postinstall script manually:" >&2
echo "  cd node_modules/opencode-ai && node postinstall.mjs" >&2
echo "" >&2
echo "Or reinstall opencode-ai without the --ignore-scripts flag." >&2
exit 1

Plugins

No response

OpenCode version

1.15.3

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Debian 13

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions