Yarn: [0.19.1] [regression] Yarn does not use registry configuration

Created on 26 Jan 2017  路  3Comments  路  Source: yarnpkg/yarn

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.

Most helpful comment

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

All 3 comments

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. -.-

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

Thanks very much :)

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

Was this page helpful?
0 / 5 - 0 ratings