-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] npm 7.x ignores publishConfig.registry #1937
Comments
this should be resolved! can you update to 7.0.1 with |
I'm using 7.3.0 and still seeing this behavior, specifically, it fails with ENEEDAUTH immediately when I run Reverting to 6.14.10 fixes it, as does manually specifying |
I can confirm this bug exists in 7.3.0. |
I can confirm this bug exists in 7.4.0, and 7.4.3 |
This works for me in 7.2.0 and breaks in 7.3.0. |
I can confirm this still exists with 7.5.2 which is now released to GA and breaking 60+ projects on our ci server. |
The |
This issue still exist in 7.5.4 |
It is still reproduced in 7.5.6 |
is the problem you're seeing that we're actually publishing to the wrong registry? or are you getting the |
I am still getting |
would you mind opening a new issue? the ENEEDAUTH thing is distinct from this original bug. i'll make sure we address this for the next release |
I am not sure how to get full publish log. |
|
For me, the issue still is that it's being published to the wrong registry. |
would you mind also opening a new issue? if you can come up with a small reproduction case for us that would be amazing, i haven't been able to reproduce the case where we're publishing to the wrong registry |
I'll do this tomorrow morning. |
actually, I don't think it's a different issue, it's because the user is authorized for publishConfig.registry but not authorized for the default registry (npm I'm assuming) |
If anyone else lands hear as I did I found running |
Because this sets the registry in the global .npmrc file. npm seems to take always the registry from the global .npmrc and ignores any local .npmrc and the publishConfig in the package.json. Still an issue with v10.2.4!? |
Current Behavior:
npm publish
does not followpublishConfig.registry
, if registry is.npmrc
it will try to publish to that, if not npm.org.Expected Behavior:
npm publish
publish to definedpublishConfig.registry
as it did in 6.x.Steps To Reproduce:
publishConfig.registry
IE:"publishConfig": { "registry": "https://..." }
npm publish
Environment:
The text was updated successfully, but these errors were encountered: