EBADF fstat error with 25.7.0 but not 25.6.1

Aperta
#62,012 25 commenti 14 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, linux, node.js

Direzione di ricerca

Riproduci il fallimento su Alpine 3.23 con Node.js 25.7.0, Yarn 4.12.0, Cypress o ESLint, quindi confronta con 25.6.1. Inizia dallo stack fstat di node:fs e dagli entry point menzionati internal/modules/esm/load e internal/modules/esm/loader. Il lavoro è completato quando l’errore EBADF riproducibile non si verifica più durante l’installazione di Cypress o l’esecuzione di ESLint.

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

Descrizione

loaders
Version

25.7.0

Platform
Alpine 3.23
Subsystem

No response

What steps will reproduce the bug?

Both Cypress and ESLint using Yarn 4.12.0, have the error:

node:internal/event_target:1118
  process.nextTick(() => { throw err; });
                           ^
Error: EBADF: bad file descriptor, fstat
    at tryStatSync (node:fs:386:25)
    at readFileSync (node:fs:442:17)
    at getSourceSync (node:internal/modules/esm/load:37:14)
    at createCJSModuleWrap (node:internal/modules/esm/translators:204:32)
    at ModuleLoader.commonjsStrategy (node:internal/modules/esm/translators:343:10)
    at #translate (node:internal/modules/esm/loader:451:20)
    at afterLoad (node:internal/modules/esm/loader:507:29)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:512:12)
    at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:555:36)
    at afterResolve (node:internal/modules/esm/loader:603:52) {
  errno: -9,
  code: 'EBADF',
  syscall: 'fstat'
}

Node.js v25.7.0

It is not an issue when installing Cypress or running ESLint with Node 25.6.1

How often does it reproduce? Is there a required condition?

Every time

What is the expected behavior? Why is that the expected behavior?

Running ESLint or installing Cypress should not reproduce the error.

What do you see instead?

Installed without errors for Cypress, Lints without errors for ESLint.

Additional information

At first I thought it was an issue with Cypress until I ran ESLint.
https://github.com/cypress-io/cypress/issues/33418

Lingua principale
JavaScript
Stelle
122k
Fork
37.4k
Merge medio
4g 3h
PR unite (30g)
273

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 nodejs/node

Tutte le issue di nodejs/node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.