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

npm whoami fails when .npmrc has custom registry #764

Open
fisker opened this issue Feb 5, 2025 · 0 comments
Open

npm whoami fails when .npmrc has custom registry #764

fisker opened this issue Feb 5, 2025 · 0 comments

Comments

@fisker
Copy link
Contributor

fisker commented Feb 5, 2025

Description

Steps to reproduce

  1. Add custom registry to .npmrc
  2. Add publishConfig with NPM registry https://registry.npmjs.org/
  3. Run np
You must be logged in. Use `npm login` and try again.

Expected behavior

externalRegistry: isExternalRegistry ? package_.publishConfig.registry : false,
should use registry from publishConfig even it's not external registry, otherwise NPM will read .npmrc

Environment

np - 10.2.0
Node.js - 10.2.0
npm - 10.7.0
Git - git version 2.42.0.windows.2
OS - Windows 10

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

No branches or pull requests

1 participant