I'm using PM2 to run things for local development across many projects at once. I'm getting this error now that I've updated Node to 24.15.0. I can get around this by downgrading to 24.14.x, but know I'm going to have to upgrade eventually.
I receive this on both PM2 v6.0.14 and 7.0.1.
Full Error Output
node:fs:391
const stats = binding.fstat(fd, false, undefined, true /* shouldNotThrow */);
^
Error: EBADF: bad file descriptor, fstat
at tryStatSync (node:fs:391:25)
at readFileSync (node:fs:447:17)
at getSourceSync (node:internal/modules/esm/load:37:14)
at createCJSModuleWrap (node:internal/modules/esm/translators:210:32)
at ModuleLoader.commonjsStrategy (node:internal/modules/esm/translators:349: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 v24.15.0
I'm using PM2 to run things for local development across many projects at once. I'm getting this error now that I've updated Node to 24.15.0. I can get around this by downgrading to 24.14.x, but know I'm going to have to upgrade eventually.
I receive this on both PM2 v6.0.14 and 7.0.1.
Full Error Output