Skip to content
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

[0.19.1] [regression] Yarn does not use registry configuration #2557

Closed
victornoel opened this issue Jan 26, 2017 · 3 comments
Closed

[0.19.1] [regression] Yarn does not use registry configuration #2557

victornoel opened this issue Jan 26, 2017 · 3 comments

Comments

@victornoel
Copy link
Contributor

Hi,

From all the things I read, I understood that yarn is supposed to support normal registry configuration (i.e., non-scoped registry) like this for example:

registry "http://MACHINE/nexus/content/groups/npm/"

But when I configure that, it doesn't seem that yarn is actually using it:

$ yarn --verbose
yarn install v0.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
verbose Performing "GET" request to "https://registry.yarnpkg.com/angular2-notifications/-/angular2-notifications-0.4.49.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@ngrx/core/-/core-1.2.0.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/common/-/common-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/compiler/-/compiler-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/forms/-/forms-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/http/-/http-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/material/-/material-2.0.0-beta.1.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-2.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@angular/router/-/router-3.4.5.tgz".
verbose Performing "GET" request to "https://registry.yarnpkg.com/@ngrx/store/-/store-2.2.1.tgz".
...

It doesn't use the one configured in npm either.

@maxmarkus
Copy link

maxmarkus commented Jan 26, 2017

Strange, it works for me, using same version.

$ yarn --verbose
yarn install v0.19.1
info No lockfile found.
verbose Performing "GET" request to "https://yarnpkg.com/latest-version".
[1/4] 🔍  Resolving packages...
verbose Performing "GET" request to "http://ec2-54....

But I cannot use yarn in this project, since I need authentication for sinopia and exclude a scoped package. -.-

@victornoel
Copy link
Contributor Author

@maxmarkus how did you configure it exactly? Could you show me the ~/.yarnrc file?
On which platform are you?

Thanks very much :)

@victornoel
Copy link
Contributor Author

I think I found the problem! yarn.lock contains the url of the registry!
Opened #2566 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants