Comment by egorfine
4 days ago
1. Running background code on my machine is something that gets an immediate removal from me.
2. opencode 2.0 does not exists. I mean it: there is no release[1] and per their own instructions, `npm i -g @opencode/cli@latest` does not install opencode 2.0.
3. `Error: @opencode/cli's postinstall script was not run.` Not even running postinstall.js can fix that, neither on linux nor macos. And even if it works, in a couple of days or on the next upgrade it will fail again.
They are pretty clownish on some things and that is one of them. They HAVE at some point started versioning their docker images at least, big win.
Fun fact: The npm release does not contain the code, it is downloaded by the postinsta script. Galaxy brain.
Yeah, I have finally decided to read the postinstall script while I was writing these comments. Incredible, really.
Try this: