opencode icon indicating copy to clipboard operation
opencode copied to clipboard

ubuntu install opencode question

Open XJPeng12 opened this issue 17 hours ago • 1 comments

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: [email protected]

$ husky file:///app/idgp-dev/node_modules/.bun/[email protected]/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

XJPeng12 avatar Jan 16 '26 12:01 XJPeng12