by egorfine · 1mo ago · 0 comments
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.
Fun fact: The npm release does not contain the code, it is downloaded by the postinsta script. Galaxy brain.
npm install -g --allow-scripts=@opencode/cli @opencode/cli