-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 authentication not working #74
Comments
Yarn is a completely different beast than NPM. While I would like to use this approach as well, I think it's a lot more work than simply just doing it. |
Can we have a yarn connector for verdaccio? |
I am interested in contributing to resolve this issue. Are there any guidelines available? |
@ameesme can I help, I also would like yarn to work well with sinopia. Testing it as we speak. |
According to this PR and this PR yarn should work with scoped packages on private repositories the same way npm does (with autentication information in .npmrc). However I just tested the nightly build of yarn (0.18.0-20161127.0346) and it does not work. I get the same error as in the first comment. I guess this is a problem with yarn rather than verdaccio. |
I started to monitor things with tcpdump to see what was going wrong, and suddenly it just stared working. So now the nightly build of yarn (0.18.0-20161127.0346) is working and installing packages from verdaccio for me :-). |
Seems it only works if you have prefixed the registry with a scope in .npmrc. Like this:
If I omit the |
Thanks @jonaskello prefixing fixes it! |
Is this still working with latest yarn? I'm currently facing: verdaccio_1 | http --> 404, req: 'GET https://registry.npmjs.org/@scope%2Fpackage', bytes: 0/21
verdaccio_1 | http <-- 200, user: test, req: 'GET /@scope%2fpackage', bytes: 0/1145
verdaccio_1 | http <-- 403, user: undefined, req: 'GET /@scope%2fpackage/-/package-0.1.2.tgz', error: unregistered users are not allowed to access package @scope/package Fetching the archive does not seem to be done as registered user. |
@zifeo EDIT: Just noticed this is the intended behaviour as the package is probably on your Verdaccio-instance. |
@ameesme NPM works fine on this case. Is this the regular way of using scoped packages? |
@ameesme Yes, the scoped package is on Verdaccio's side. Shall I open another issue for it even though the issue seems to be the yarn authentification? |
@zifeo Sorry for resurrecting. Did you manage to solve the issue you faced?
I'm using sinopia-gitlab-heres for auth. UPDATE: For anyone facing this issue, put a |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi. We've been running Sinopia for a while and recently switched to Verdaccio as a private registry.
I looked into Yarn, but didn't get this to work with Verdaccio. Yarn's authentication flow is as follows:
yarn login
yarn install
However, this method of authentication does not seem to work. The following error is thrown:
Error: https://*.*/isomorphic-fetch: unregistered users are not allowed to access package isomorphic-fetch
I'm not sure whether this is an issue with Yarn or Verdaccio. Do any of you have experiences with using the combination of the two?
The text was updated successfully, but these errors were encountered: