Node.jsRunbook 0/2 done
ENOENT

Node.js Error ENOENT: No such file or directory

Error✕ Not retryable · fix the payloadRuntime
TL;DR · 10-second read

The path does not exist relative to process.cwd(), not to the source file. Resolve paths with path.join(__dirname, ...) or new URL('./file', import.meta.url).

Identify: does your log match?

What you see · exact log / response
Error: ENOENT: no such file or directory, open './config/settings.json'
    at Object.openSync (node:fs:573:18)
    at Object.readFileSync (node:fs:452:35) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './config/settings.json'
}

Fix

Being written

Copy-paste fixes for ENOENT are in the enrichment queue

The summary above is verified. Paste your full trace into the decoder for a diagnosis now.

Open the decoder →

Related errors

Last verified 2026-10-10 · Source: POSIX errno + Node.js ERR_* codes (doc/api/errors.md) · Official docs ↗ · ~27,100 searches/mo