npm / npm/cli

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

Abierto
#9,653 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Bug Priority 2
Lenguaje dominante
JavaScript
Estrellas
10.1k
Forks
4.7k
Merge medio
2 d 2 h
PR fusionados (30 d)
19

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce la instalación del repositorio hermes-agent en Windows y, después, inspecciona node_modules/@tabler/icons-react en busca de dist/tabler-icons-react.d.ts. Ejecuta npm run build -w apps/desktop y compara el paquete instalado con el tarball de npm; se considera terminado cuando npm install incluye la declaración y la compilación de desktop se completa correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, nodejs, typescript
Área
cli, tooling
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bien especificado
Aptitud para principiantes
65/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.