Skip to content

ubuntu install opencode question #8872

Closed

Description

@XJPeng12

Description

docker pull ubuntu:22.04

docker pull ubuntu:22.04
docker run -itd
--name opencode
-p 4096:4096
ubuntu:22.04
/bin/bash

docker exec -it opencode /bin/bash
mkdir -p /app
#cp /root/opencode-dev.zip 7196ea56696b:/app
cd /app
apt update && apt install -y curl unzip
unzip opencode-dev.zip
curl -fsSL https://bun.sh/install | bash

source ~/.bashrc

bun --version # 1.3.6

cd /app/opencode-dev

bun install

my question:
bun install v1.3.6 (d530ed99)
🚚 ghostty-web... error: failed applying patch file: EINVAL: Invalid argument (read())
error: failed to patch package: ghostty-web@0.3.0

$ husky
file:///app/idgp-dev/node_modules/.bun/husky@9.1.7/node_modules/husky/bin.js:14
;(o.scripts ||= {}).prepare = 'husky'
^

SyntaxError: Unexpected token '='


Thank you so much for your help! I really appreciate the time you took to look into this, and your response helped me resolve the issue.

Any reply is greatly appreciated — thank you so much!

Plugins

No response

OpenCode version

dev

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

ubuntu22.04

Terminal

No response

Activity

  1. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Both issues report the exact same error: error: failed applying patch file: EINVAL: Invalid argument (read()) when patching ghostty-web@0.3.0 during bun install in a Docker/Ubuntu environment.

    Feel free to ignore if this doesn't address your specific case.

  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions