Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add NPM as a provider

Aperta
#807 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
tooling

Direzione di ricerca

Start by reading the NPM registry example in the issue and the related discussion in issue #806 to understand the provider and fallback context. Done means LibraryManager supports NPM as a provider and can retrieve packages such as chart.js from the registry without relying on a community provider.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is your feature request related to a problem? Please describe.

Using LibMan puts the chosen provider as a critical dependency of your build. This is expected, but also risky, especially since we're talking about unofficial ones. If the provider fails, all your builds will fail (unless there can be a secondary one: https://github.com/aspnet/LibraryManager/issues/806). NPM can have outages as well, but I'd consider using it an easier sell than community projects, even if they're awesome.

Furthermore, using NPM feels a bit more secure as well to avoid supply chain attacks.

Describe the solution you'd like

Add NPM as a new provider. While not obvious, you can also download the packages from NPM via HTTP. E.g. this one is for the current latest chart.js package: https://registry.npmjs.org/chart.js/-/chart.js-4.5.1.tgz.

Describe alternatives you've considered

Having secondary providers: https://github.com/aspnet/LibraryManager/issues/806.

Additional context

Nothing else.

Lingua principale
C#
Stelle
486
Fork
91
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aspnet/LibraryManager

Tutte le issue di aspnet/LibraryManager

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.