-
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
Error: Could not authenticate deployment #1952
Comments
Hey @yorch! Maybe |
Indeed, stack trace from |
I have no idea where that error message is coming from, I don't see it anywhere on GitHub at all :P https://github.com/search?q=%22could+not+authenticate+deployment%22&type=Code&utf8=%E2%9C%93 |
So I tried to replicate the problem on another mac, and couldn't. Went back to the original mac, and turns out the problem is related to the
The last line is the one causing troubles, not sure why considering that npm works fine with it. Not sure if this is a bug or expected behaviour. In any case, thanks for your help! |
I had the same issue:
When I commented out the |
This also affects |
This should be quite easy to fix, as the code that reads those .npmrc settings is easy to find, a PR is welcome. |
I hit this with version 0.24.6 as well - can confirm commenting out the |
Working on this |
Okay, I realized this only happened if you had an old |
0.26.x is still an RC release though, so only upgrade to it if you're comfortable testing an RC 😃 |
Thanks for investigating @BYK! |
Apparently fixed, so I'm going to close this issue for now 👍 |
@arcanis just came back after update to 0.27.5 from 0.26.1 |
The commit that fixed this issue was breaking installing private package ... by fixing it we broke again this one :/ @BYK I kinda remember you worked a bit on this, what do you think would be the best way to solve this issue? If I understand correctly:
So it seems the only course of action here would be to try without the token, then try again with a token if it fails with a 404 status. Missing something? |
I think NPM allows you to make authenticated requests for public packages without a problem provided that your tokens are valid. May be we can retry with/without a token if the first request fails? We can also probably save the token/no-token preference per package to somewhere for future requests? |
I was probably tired, I can't reproduce this issue on the computer where I thought it failed... Just tried with 0.27.5, and it worked just fine with both public & private scopped packages 😶 |
@szarouski yep I confirm it comes back to me as well in relates #2507 |
@pensierinmusica Can you try to check inside your ~/.npmrc or ~/.yarnrc file? Is there an |
Ok, I've solved it. It looks like I had changed the password in the meantime and the @arcanis maybe this could be suggested right there in the error message? |
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
Getting an error when trying to run
yarn install
on an Angular 2 project that works fine withnpm install
If the current behavior is a bug, please provide the steps to reproduce.
node_modules
yarn install
What is the expected behavior?
To yarn to run successfully and to have all the dependencies installed in
node_modules
Please mention your node.js, yarn and operating system version.
node 7.1.0, installed with nvm
MacOS 10.11.6
yarn 0.17.6
The text was updated successfully, but these errors were encountered: