You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: Vite+ install method doesn't work — vp global installs never run the postinstall script #50310
The v2 docs list Vite+ as an install method and state it needs no extra flag:
vp install -g @opencode/cli … "The Bun and pnpm commands explicitly allow the required script; Vite+ requires no additional flag."
(services/www/src/docs/content/index.mdx, v2 branch)
That claim doesn't hold. vp install -g never runs package lifecycle scripts (current, deliberate Vite+ behavior — voidzero-dev/vite-plus#2336: "vp's own global installs have no scripts", "vp install -g has no --allow-scripts plumbing"). The documented command installs a broken CLI with no warning at install time:
$ vp install -g @opencode/cli
$ opencode
Error: @opencode/cli's postinstall script was not run.
bin/opencode.exe stays the shipped 229-byte placeholder stub; the real binary is already on disk at node_modules/@opencode/cli-<platform>/bin/ — only the postinstall link is missing. Running node postinstall.mjs in the package directory repairs it, but every vp upgrade re-runs the script-free install and breaks it again (reproduced on a fresh 2.0.9 install and on an upgrade).
Same failure class as #48884 — #48885's runtime launcher would fix it for every script-blocking installer, Vite+ included. Filing separately because the docs actively send Vite+ users down this path with an explicit "no additional flag" claim.
Could the Vite+ claim be corrected or removed until #48885 lands? I can send the docs PR.
The trigger may be the vp-managed npm version: npm 12 skips install scripts that allowScripts doesn't cover, and vp only handles that for project installs, not -g (voidzero-dev/vite-plus#2336). The documented command fails silently with managed npm 12 and works with npm 11. Details in voidzero-dev/vite-plus#2766. #48885 would make this moot either way.
Activity
legibet commentedon Sep 21, 2026
Filed the Vite+-side report here: voidzero-dev/vite-plus#2766
legibet commentedon Sep 21, 2026
The trigger may be the vp-managed npm version: npm 12 skips install scripts that
allowScriptsdoesn't cover, and vp only handles that for project installs, not-g(voidzero-dev/vite-plus#2336). The documented command fails silently with managed npm 12 and works with npm 11. Details in voidzero-dev/vite-plus#2766. #48885 would make this moot either way.