nextjs - 💡(How to fix) Fix Assuming of npm registry call in dev server [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#89165Fetched 2026-04-08 02:03:16
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
closed ×1commented ×1labeled ×1locked ×1
RAW_BUFFERClick to expand / collapse

https://github.com/vercel/next.js/blob/02d8ff2cf3b3cdb0101981321ee7a31730d6a843/packages/next/src/server/dev/hot-reloader-shared-utils.ts#L17

I'm running MSW and catched this as an unhandled request. This assumes using npmjs, but in my case I'm overriding with a internal npm proxy (verdaccio in my case).

It should use the same registry as the one being used for next.

extent analysis

TL;DR

Configure Next.js to use the internal npm proxy registry, such as Verdaccio, for consistency with the project's package manager setup.

Guidance

  • Verify that the npm configuration is set to use the internal proxy registry (e.g., Verdaccio) for the project.
  • Check if Next.js has an option to override the default registry URL, which might be hardcoded to npmjs.
  • Investigate the hot-reloader-shared-utils.ts file to see if there's a way to pass the custom registry URL as an option or environment variable.
  • Consider setting the npm_config_registry environment variable to point to the internal proxy registry before running Next.js.

Notes

The solution might require modifying the Next.js configuration or the hot-reloader-shared-utils.ts file, but without more information about the available options or APIs, it's difficult to provide a more specific fix.

Recommendation

Apply workaround: Configure the environment variable npm_config_registry to point to the internal proxy registry (e.g., Verdaccio) to ensure consistency with the project's package manager setup.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING