Hi,
Aus all dem, was ich gelesen habe, habe ich verstanden, dass Garn die normale Registrierungskonfiguration (dh Registrierung ohne Gültigkeitsbereich) unterstützen soll, wie zum Beispiel:
registry "http://MACHINE/nexus/content/groups/npm/"
Aber wenn ich das konfiguriere, scheint es nicht, dass Garn es tatsächlich verwendet:
$ 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".
...
Es verwendet auch nicht das in npm konfigurierte.
Seltsam, bei mir funktioniert es mit der gleichen 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....
Aber ich kann in diesem Projekt kein Garn verwenden, da ich eine Authentifizierung für Sinopia benötige und ein Scoped-Paket ausschließe. -.-
@maxmarkus wie hast du es genau konfiguriert? Könnten Sie mir die Datei ~/.yarnrc zeigen?
Auf welcher Plattform bist du?
Vielen Dank :)
Ich glaube ich habe das Problem gefunden! yarn.lock
enthält die URL der Registry!
Stattdessen #2566 geöffnet.
Hilfreichster Kommentar
Ich glaube ich habe das Problem gefunden!
yarn.lock
enthält die URL der Registry!Stattdessen #2566 geöffnet.