GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: add web-login proxy doneUrl regression for npm-profile fix by manzoorwanijk · Pull Request #9560 · npm/cli

Conversation

@manzoorwanijk

@manzoorwanijk manzoorwanijk commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Adds a regression test for #8875. The fix is in npm-profile (npm/npm-profile#191).

This test is expected to be red until bundled npm-profile is bumped to the release with the fix, and turns green after that.

Why

npm login --auth-type=web silently fails behind a proxy/mirror: the returned doneUrl points at the canonical registry.npmjs.org instead of the proxy, so npm polls the wrong host, gets a 403, and falls back to couch auth (which also fails). Fixed in npm-profile by rewriting doneUrl to the configured registry origin.

How

  • @npmcli/mock-registry: weblogin() gains an optional doneRegistry to emulate a proxy advertising a doneUrl on another origin.
  • test/lib/commands/login.js: proxy registry whose doneUrl is on registry.npmjs.org; asserts the token is saved with no couch fallback. Fails with the current bundled npm-profile, passes once it is bumped.

References

Fixes #8875
Depends on: npm/npm-profile#191
Related: #9550

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@manzoorwanijk
manzoorwanijk force-pushed the test/web-login-proxy-doneurl-integration branch from e07a39d to 24f64a5 Compare June 16, 2026 18:08
@manzoorwanijk manzoorwanijk changed the title test: add web-login proxy doneUrl regression for npm-profile fix chore: add web-login proxy doneUrl regression for npm-profile fix Jun 16, 2026
@manzoorwanijk

manzoorwanijk commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

@owlstronaut we can update and land this once npm/npm-profile#191 lands in this repo after release and bump.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@owlstronaut owlstronaut added the backport:v11 label Jun 18, 2026
@manzoorwanijk manzoorwanijk closed this Jun 19, 2026
@manzoorwanijk
manzoorwanijk deleted the test/web-login-proxy-doneurl-integration branch June 19, 2026 04:52
@manzoorwanijk
manzoorwanijk restored the test/web-login-proxy-doneurl-integration branch June 19, 2026 05:02
@manzoorwanijk manzoorwanijk reopened this Jun 19, 2026
@manzoorwanijk
manzoorwanijk force-pushed the test/web-login-proxy-doneurl-integration branch from 24f64a5 to 1488532 Compare June 19, 2026 05:03
@manzoorwanijk

manzoorwanijk commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

We can rebase this once #9579 and #9580 land.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@manzoorwanijk
chore: add web-login proxy doneUrl regression for npm#8875
ede4f79
@manzoorwanijk
manzoorwanijk force-pushed the test/web-login-proxy-doneurl-integration branch from 1488532 to ede4f79 Compare June 19, 2026 14:04
@manzoorwanijk
manzoorwanijk marked this pull request as ready for review June 19, 2026 14:07
@manzoorwanijk
manzoorwanijk requested review from a team as code owners June 19, 2026 14:07
@manzoorwanijk

manzoorwanijk commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

CI is happy now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

owlstronaut
owlstronaut approved these changes Jun 19, 2026
View reviewed changes
@owlstronaut
owlstronaut merged commit 059c06e into npm:latest Jun 19, 2026
45 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Jun 19, 2026
chore: add web-login proxy doneUrl regression for npm-profile fix #9584
Merged
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #9584

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@manzoorwanijk
manzoorwanijk deleted the test/web-login-proxy-doneurl-integration branch June 19, 2026 14:43
@github-actions github-actions Bot mentioned this pull request Jun 19, 2026
chore: release 12.0.0-pre.1 #9387
Merged
owlstronaut pushed a commit that referenced this pull request Jun 19, 2026
@github-actions @manzoorwanijk
chore: add web-login proxy doneUrl regression for npm-profile fix (#9584
a04cd84
)

Backport of #9560 to `release/v11`.

Co-authored-by: Manzoor Wani <[email protected]>
@npm-cli-bot npm-cli-bot mentioned this pull request Jun 23, 2026
deps: upgrade npm to 12.0.0-pre.1 nodejs/node#64096
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@owlstronaut owlstronaut owlstronaut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backport:v11

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BUG] NPM Login Failure Blocking Package Installation

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@manzoorwanijk @owlstronaut
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.