anomalyco / anomalyco/opencode
OpenCode V2's `postinstall` is corrupted
Open
@nexxeln is already working on this.
Since Aug 19, 2026.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
- OpenCode V2's
postinstallis corrupted.
lingh@DESKTOP-8UCKIRD:~$ pnpm add --global --allow-build=@opencode-ai/cli @opencode-ai/cli@beta
Packages: +1
+
Packages are copied from the content-addressable store to the virtual store.
Content-addressable store is at: /home/lingh/.local/share/pnpm/store/v11
Virtual store is at: .local/share/pnpm/store/v11/links
Progress: resolved 1, reused 0, downloaded 1, added 1, done
.local/share/pnpm/store/v11/links/@opencode-ai/cli/0.0.0-beta-17595/ff2f6b1cfd9ff08f620c6d7a72bd5aa9fd2bf0cb8df3348c814321aea449867b/node_modules/@opencode-ai/cli: Running postinstall script, failed in 1.7s
.../node_modules/@opencode-ai/cli postinstall$ node ./postinstall.mjs
│ npm error code ETARGET
│ npm error notarget No matching version found for @opencode-ai/cli-linux-x64@0.0.0-beta-17595.
│ npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn'…
│ npm error A complete log of this run can be found in: /home/lingh/.npm/_logs/2026-08-19T06_45_59_568Z-debug-0…
│ npm error code ETARGET
│ npm error notarget No matching version found for @opencode-ai/cli-linux-x64-baseline@0.0.0-beta-17595.
│ npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn'…
│ npm error A complete log of this run can be found in: /home/lingh/.npm/_logs/2026-08-19T06_46_00_182Z-debug-0…
│ npm error code ETARGET
│ npm error notarget No matching version found for @opencode-ai/cli-linux-x64-musl@0.0.0-beta-17595.
│ npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn'…
│ npm error A complete log of this run can be found in: /home/lingh/.npm/_logs/2026-08-19T06_46_00_500Z-debug-0…
│ npm error code ETARGET
│ npm error notarget No matching version found for @opencode-ai/cli-linux-x64-baseline-musl@0.0.0-beta-17595.
│ npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn'…
│ npm error A complete log of this run can be found in: /home/lingh/.npm/_logs/2026-08-19T06_46_00_853Z-debug-0…
│ Failed to install OpenCode. Try manually installing "@opencode-ai/cli-linux-x64" or "@opencode-ai/cli-linux-x…
└─ Failed in 1.7s at /home/lingh/.local/share/pnpm/store/v11/links/@opencode-ai/cli/0.0.0-beta-17595/ff2f6b1cfd9ff08f620c6d7a72bd5aa9fd2bf0cb8df3348c814321aea449867b/node_modules/@opencode-ai/cli
[ELIFECYCLE] Command failed with exit code 1.
Plugins
None
OpenCode version
@opencode-ai/cli@beta
Steps to reproduce
- Execute the following command in Ubuntu 26.04 bash:
sudo apt update && sudo apt upgrade --assume-yes
sudo snap install mise --classic
cat ~/.bashrc
echo 'eval "$(mise activate bash)"' >> ~/.bashrc
source ~/.bashrc
mise doctor
sudo apt install --assume-yes libatomic1
mise use --global node@26.7.0
npm install --global npm@latest
npx --yes get-pnpm
cat ~/.bashrc
source ~/.bashrc
pnpm add --global --allow-build=@opencode-ai/cli @opencode-ai/cli@beta
Screenshot and/or share link
Operating System
Ubuntu 26.04
Terminal
Windows Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.