opencode upgrade has hardcoded registry #3162

Closed
opened 2026-02-16 17:38:54 -05:00 by yindo · 5 comments
Owner

Originally created by @azachar on GitHub (Nov 27, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

opencode upgrade has hardcoded npm registry.

It should use npm's config registry instead.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @azachar on GitHub (Nov 27, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description opencode upgrade has hardcoded npm registry. It should use npm's config registry instead. ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:38:54 -05:00
yindo closed this issue 2026-02-16 17:38:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 27, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4490: npm-registry without ending slash breaks opencode

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Nov 27, 2025): This issue might be a duplicate of existing issues. Please check: - #4490: npm-registry without ending slash breaks opencode Feel free to ignore if this doesn't address your specific case.
Author
Owner

@azachar commented on GitHub (Nov 27, 2025):

Actually, it is not a duplicate this is a new issue.

@azachar commented on GitHub (Nov 27, 2025): Actually, it is not a duplicate this is a new issue.
Author
Owner

@azachar commented on GitHub (Dec 1, 2025):

Look at this code: https://github.com/sst/opencode/blob/4eb4d97d51fed644cf60823877edf42c71d5465f/packages/opencode/src/installation/index.ts#L168

You can clearly see it is hardcoded.

@azachar commented on GitHub (Dec 1, 2025): Look at this code: https://github.com/sst/opencode/blob/4eb4d97d51fed644cf60823877edf42c71d5465f/packages/opencode/src/installation/index.ts#L168 You can clearly see it is hardcoded.
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

/oc can you fix this to use registry.npmjs.org as a fallback but respect the user's configured registry

@rekram1-node commented on GitHub (Dec 1, 2025): /oc can you fix this to use registry.npmjs.org as a fallback but respect the user's configured registry
Author
Owner

@opencode-agent[bot] commented on GitHub (Dec 1, 2025):

Created PR #4958

New%20session%20-%202025-12-01T22%3A46%3A35.945Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Dec 1, 2025): Created PR #4958 <a href="https://opencode.ai/s/mB7p7gBm"><img width="200" alt="New%20session%20-%202025-12-01T22%3A46%3A35.945Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEyLTAxVDIyOjQ2OjM1Ljk0NVo=.png?model=opencode/claude-haiku-4-5&version=1.0.126&id=mB7p7gBm" /></a> [opencode session](https://opencode.ai/s/mB7p7gBm)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19840077688)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3162