Skip to content

[Bug]: global pnpm installations cannot self-update #4202

Description

@oliver-mee

Client or integration

Other: OpenCodex CLI (ocx)

Area

Installation or packaging

Summary

When OpenCodex is installed globally with pnpm, ocx update invokes the npm-oriented staging command. The pnpm CLI rejects the forwarded --allow-scripts, --no-audit, and --no-fund options, so the update aborts after the proxy has been stopped. The expected behaviour is for the updater to detect pnpm and use a pnpm-native global update path, or report a safe actionable error before stopping the proxy.

Reproduction

  1. Install OpenCodex globally with pnpm: pnpm add -g @bitkyc08/opencodex.
  2. Use an installed version for which a newer package is available.
  3. Run ocx update.
  4. Observe that the update is redirected to pnpm with npm-only flags and fails with unknown-option errors.

Version

2.46.0

Operating system

Ubuntu Linux on arm64 (exact distro release not recorded)

Provider and model

N/A, this is an installation and packaging issue.

Logs or error output

[npm-guard] global 'install' -> pnpm add -g --allow-scripts=bun --no-audit --no-fund @bitkyc08/opencodex@...
[ERROR] Unknown options: 'allow-scripts', 'audit', 'fund'

Screenshots and supporting files

None.

Redacted configuration

No configuration is required to reproduce this beyond a global pnpm installation.

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginstallInstallation or packaging

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions