-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn tries to authenticate against registry.yarnpkg.com instead of private registry during publish #3755
Comments
related #3765? |
@betalb, can you confirm if this is a regression from current stable (0.24.6)? |
@bestander Looks like #3765 is about |
Thanks, @betalb. |
Hi @betalb! Can you confirm this is still a problem on the latest Yarn release? |
@arcanis Yes, it is still reproducible winth yarn 0.27.5 & 0.28.4 The same behaviour that I described above The only change seems to be that when using random name it tries to perform self-registration (I've received email from npm registry) and registry replies with 201 status and then nexus registry is tried |
@betalb would you mind trying this with the latest nightlies? |
@BYK checked with nightly |
I think I understand what happened -
|
@arcanis This is strange, after running login with registry switch, I got following record in
And it looks like the issue is only with scoped packages when non-scoped registry record is missing in It seems that yarn is using non-scoped record from |
This should be fixed on master. Also, we now have the |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
We have scoped package that should be published to private npm registry, served by internally hosted Nexus (http://nexus.dev/repository/npm-releases)
When we try to publish them, log indicates that yarn is trying to authenticate against registry.yarnpkg.com instead of our hosted Nexus registry
But there is something that I mentioned when was experimenting with this feature and providing random user names
In case of 201 status yarn will try next repo and in my case it was nexus repository
Next time you try the same randomly generated username (in my case ddfgdfg0) registry.yarnpkg.com will return 401
If the current behavior is a bug, please provide the steps to reproduce.
@company-scope/example-package
Steps with random username
What is the expected behavior?
Yarn should get correct registry url for package scope and perform communication only with this repo
Please mention your node.js, yarn and operating system version.
Yarn version: 0.27.1
Node version: 7.10.0
Platform: win32 x64
The text was updated successfully, but these errors were encountered: