Description
Installing a plugin from a scoped private npm registry no longer respects scoped registry settings from ~/.npmrc.
For example, with:
@scope:registry=https://private-registry.example.com/
running:
opencode plugin --global @scope/plugin-name@latest
tries to fetch the package from https://registry.npmjs.org/... instead of the scoped registry and fails with a 404.
This looks like a regression introduced in v1.3.14. v1.3.13 does not include PR #18308 (replace BunProc with Npm module using @npmcli/arborist), while v1.3.14 does.
Plugins
None
OpenCode version
1.3.14 / 1.3.15
Steps to reproduce
- Add a scoped registry to
~/.npmrc, for example:
@scope:registry=https://private-registry.example.com/
- Make sure a plugin package exists in that private registry, for example
@scope/plugin-name.
- Run:
opencode plugin --global @scope/plugin-name@latest
- Observe that OpenCode requests the package from
registry.npmjs.org instead of the scoped registry and fails.
Example error:
Could not install "@scope/plugin-name@latest"
404 Not Found - GET https://registry.npmjs.org/@scope%2fplugin-name - Not found
Screenshot and/or share link
No response
Operating System
Arch Linux (irrelevant)
Terminal
Alacritty (irrelevant)
Description
Installing a plugin from a scoped private npm registry no longer respects scoped registry settings from
~/.npmrc.For example, with:
@scope:registry=https://private-registry.example.com/running:
tries to fetch the package from
https://registry.npmjs.org/...instead of the scoped registry and fails with a 404.This looks like a regression introduced in
v1.3.14.v1.3.13does not include PR #18308 (replace BunProc with Npm module using @npmcli/arborist), whilev1.3.14does.Plugins
None
OpenCode version
1.3.14 / 1.3.15
Steps to reproduce
~/.npmrc, for example:@scope/plugin-name.registry.npmjs.orginstead of the scoped registry and fails.Example error:
Screenshot and/or share link
No response
Operating System
Arch Linux (irrelevant)
Terminal
Alacritty (irrelevant)