npm / npm/cli

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

Ouverte
#9,653 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Bug Priority 2
Langage dominant
JavaScript
Étoiles
10.1k
Forks
4.7k
Merge moyen
2 j 2 h
PR mergées (30 j)
19

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduisez l’installation du dépôt hermes-agent sous Windows, puis inspectez node_modules/@tabler/icons-react à la recherche de dist/tabler-icons-react.d.ts. Exécutez npm run build -w apps/desktop et comparez le package installé avec le tarball npm ; c’est terminé lorsque npm install inclut la déclaration et que le build de desktop réussit.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, nodejs, typescript
Domaine
cli, tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
65/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.