-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Installation fails on Fedora 43 with npm after version v1.0.152
Issue Description
When attempting to install the latest version of opencode-ai globally via npm on Fedora 43, the installation fails with an error related to missing opencode-linux-x64 package.
System Environment
- OS: Fedora 43
- Node Version Manager (nvm): v24.4.1
Command & Error Output
$ npm i -g opencode-ai@latest
npm error code 1
npm error path /home/shih/.nvm/versions/node/v24.4.1/lib/node_modules/opencode-ai
npm error command failed
npm error command sh -c bun ./postinstall.mjs || node ./postinstall.mjs
npm error Failed to setup opencode binary: Could not find package opencode-linux-x64: Cannot find module 'opencode-linux-x64/package.json' from '/home/shih/.nvm/versions/node/v24.4.1/lib/node_modules/opencode-ai/postinstall.mjs'
npm error Failed to setup opencode binary: Could not find package opencode-linux-x64: Cannot find module 'opencode-linux-x64/package.json'
npm error Require stack:
npm error - /home/shih/.nvm/versions/node/v24.4.1/lib/node_modules/opencode-ai/postinstall.mjs
npm error A complete log of this run can be found in: /home/shih/.npm/_logs/2025-12-16T02_13_49_262Z-debug-0.logAdditional Information
- Version v1.0.152 installs correctly without issues.
- This error occurs in versions after v1.0.152, regardless of whether attempting a fresh install or updating from an existing version.
Steps to Reproduce
- Use Fedora 43 with nvm v24.4.1.
- Run
npm i -g opencode-ai@latest. - Observe the installation failure.
Expected Behavior
The package should install successfully on Linux systems.
Actual Behavior
Installation fails due to missing opencode-linux-x64 package in the postinstall script.
OpenCode version
v1.0.152
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Fedora 43
Terminal
Gnome Terminal
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working