Skip to content
Discussion options

You must be logged in to vote

Confirmed — thanks for the clear repro. The issue is that aube's .npmrc parser only ran ${VAR} substitution on the value side of each line; pnpm/npm both expand ${VAR} on keys and values. With your config:

registry=${NEXUS_NPM_URL}
${NEXUS_NPM_AUTH_URL}:_auth=${NEXUS_NPM_TOKEN}

registry=... worked because the value was expanded, so aube found the right host. But ${NEXUS_NPM_AUTH_URL}:_auth=... landed in the auth map under the literal ${NEXUS_NPM_AUTH_URL} placeholder, so when aube went to fetch tarballs from your real Nexus host the per-URI lookup missed and the request went out unauthenticated → 401.

Fix is up at #521 — one-line change to also expand env vars in keys, plus a regression t…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by llimllib
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants