Skip to content

Conversation

@flj2mu2
Copy link
Contributor

@flj2mu2 flj2mu2 commented Nov 17, 2025

Properly handle the resolution of a path via a custom registry with a path element in the URL, when the path element is a prefix of a package name.

When a custom registry with a path element is used (e.g. http://localhost:3080/npm/), then the resolution of download URLs for packages starting with the path element (in this case npm, so e.g. npm-run-path) will fail as the path element gets omitted.

References

Fixes #8736

Properly handle the resolution of a path via a custom registry with a path element in the URL, when the path element is a prefix of a package name.

When a custom registry with a path element is used (e.g. http://localhost:3080/npm/), then the resolution of download URLs for packages starting with the path element (in this case `npm`, so e.g. `npm-run-path`) will fail as the path element gets omitted.

## References
Fixes npm#8736
@flj2mu2 flj2mu2 requested a review from a team as a code owner November 17, 2025 10:27
@owlstronaut owlstronaut changed the title fix(arborist): fix usage of path of custom registry fix: fix usage of path of custom registry Nov 19, 2025
Copy link
Contributor

@owlstronaut owlstronaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you for the contribution!

@owlstronaut owlstronaut merged commit 3225fa3 into npm:latest Nov 19, 2025
17 checks passed
@github-actions github-actions bot mentioned this pull request Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Custom Registry Path Omitted when Package Name Starts with Name of Path

2 participants