-
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 login does not ask for password and does not login #6405
Comments
Same bug when installing scoped packages.
Workaround |
Workaround sadly does not work for us. We needed to change to npm again 😢 |
same here |
You can check by using |
Same issue here! npm login and then using yarn works though. |
any update?? very surprised by this behavior. |
Simple solution: Make sure that your global Longer answer: This is so fundamentally broken. I ran into this on a new machine, and I did log into my private registry using
But still, when I ran
Yarn wasn't even trying to log in. The problem was apparently that my global
See the
Now yarn will pick up the correct token when you run |
I don't know whats going on here ... This is a fundamental feature and I do not want to use npm at all. This feature is broken for years. Is it wanted that |
Sorry for the necro-post, but I recently upgraded a monorepo from yarn 1 to yarn 3, and our restricted organization packages started returning 404 on yarn install. Yarn 1.x would read the npm auth token from .npmrc, but yarn >=2.x will only use .yarnrc.yml. You can run npmRegistries:
"https://registry.yarnpkg.com":
npmAuthToken: npm_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX Note that config declarations from hierarchical yarnrc files are not merged, so if you have |
What is the current behavior?
What is the expected behavior?
Please mention your node.js, yarn and operating system version.
node: v10.7.0
yarn: 1.9.4
system: windows 10
The text was updated successfully, but these errors were encountered: