
Solution:
1. Uninstall OpenCode
I use pnpm, so my command is:
pnpm remove -g opencode-ai

2. Install OpenCode
pnpm install -g opencode-ai

3. Run “pnpm approve-builds -g” right after installing OpenCode
pnpm approve-builds -g
Then select the opencode-ai package and type y to approve


4. Use OpenCode as usual

Tinggalkan Balasan