Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(npmrc): add example of URI fragment limitations #8099

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from

Conversation

misse
Copy link

@misse misse commented Feb 11, 2025

Attempt to clarify limitations of how URI Fragments are not applied at the host level but at the path level and are not recursively applied to any sub-path.

When attempting to generate valid npmrc configuration files by using //host.name/:_auth=$token to cover any registry available at that host, I could not get npm to use those credentials.

I figured out the hard way that npm would only use the credentials if I specified the entire path up to the registry name i.e. //host.name/artifactory/api/npm/:auth=$token.

I felt the docs could be clarified to help other users realise the same.

Note: This PR replaces #8095 since I messed up the git commits and were unable to clean it up.

 Update formatting for clarity, resolve lint MD040/fenced-code-language and change hostnames to npmjs.org subdomains
@misse misse requested a review from a team as a code owner February 11, 2025 18:04
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.

1 participant