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
[Bug] npm upgrade path: npm 11 skips bun postinstall, and Windows reinstall fails EBUSY while the service runs #8361
Upgrading an npm-installed OpenCodex is fragile on npm 11 and on Windows while the service runs. Both cases hit today while preparing Children for Remote Link.
Windows: npm install -g @bitkyc08/[email protected] printed npm warn allow-scripts [email protected] (postinstall: node install.js) and finished "successfully"; the bun postinstall did not run.
macOS: an existing global install was left unusable — every ocx call printed opencodex: the 'bun' dependency is not installed … Reinstall with: npm install -g --allow-scripts=bun @bitkyc08/opencodex.
The docs/README install line should include --allow-scripts=bun (or the package should not depend on a lifecycle script npm 11 blocks by default).
2. Windows: reinstall while the service runs fails with EBUSY
The running service (bun.exe from the same package) locks the files. ocx service restart afterwards did pick up the new version, but the --allow-scripts=bun reinstall could not complete without stopping the service first. Related to the closed #5624 (locked bunx.exe leftover temp dir).
Suggested fix
README / ocx update npm path: use --allow-scripts=bun, and on Windows stop the service before npm install -g, then restart it (or print that instruction when an npm-managed install is detected).
ocx doctor: detect the "bun postinstall skipped" state and print the exact fix.
Acceptance
Following the documented npm upgrade steps on npm 11 (macOS and Windows, service running) ends with a working ocx and service on the new version.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Nov 8, 2026
🔗 Related PRs
#8103 - feat(update): orchestrated ocx update plan/apply contract (update.orchestrated/1) [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
fix(update): keep bun's postinstall enabled on npm 11 and diagnose a …
fix(update): keep bun's postinstall enabled on npm 11 and diagnose a …