npm / npm/cli

[BUG] `npm install` missing exactly one file in exactly one dependency package

Offen
#9,653 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bug Priority 2
Vorherrschende Sprache
JavaScript
Sterne
10.1k
Forks
4.7k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
19

Beschreibung

Is there an existing issue for this?
  • I have searched the existing issues
This issue exists in the latest npm version
  • I am using the latest npm
This is not just a request to bump a dependency for a CVE
  • This is not solely a request to bump a dependency for a CVE
Current Behavior
  • If I run npm install at the root of https://github.com/NousResearch/hermes-agent, the file dist/tabler-icons-react.d.ts must be present in node_modules/@tabler/icons-react, but is missing.
  • The next step to build the desktop app, namely npm run build -w apps/desktop fails at tsc -b with errors due to missing type declaration.
  • Build succeeds if I manually insert the file from the tarball I got from npm registry.
Expected Behavior

npm install and then npm run build -w apps/desktop succeeds.

Steps To Reproduce
  1. On windows, git clone https://github.com/NousResearch/hermes-agent
  2. npm install at the project root
  3. Observe the contents in node_modules/@tabler/icons-react to see if the file dist/tabler-icons-react.d.ts is present
  4. npm run build -w apps/desktop at the project root to see "type declarations missing" errors from tsc -b (more complete description and what I tried to fix it can be found in https://github.com/NousResearch/hermes-agent/issues/38146#issuecomment-4778032787)
Environment
  • npm: 11.17.0
  • Node.js: 24.15.0
  • OS Name: Windows 11
  • System Model Name: Dell OptiPlex 7000 (desktop)
  • npm config:
cafile = "corporate certificate (redacted)"
registry = "corporate npm proxy (redacted)"
; no other configs set

The corporate proxy is not the cause, since the tarball downloaded from the proxy does contain the offending file, and it is present when I npm install @tabler/icons-react from a fresh project.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere die Installation aus dem hermes-agent-Repository unter Windows und untersuche anschließend node_modules/@tabler/icons-react auf dist/tabler-icons-react.d.ts. Führe npm run build -w apps/desktop aus und vergleiche das installierte Paket mit dem npm-Tarball; abgeschlossen ist die Aufgabe, wenn npm install die Deklaration enthält und der Desktop-Build erfolgreich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, nodejs, typescript
Bereich
cli, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.