Home / Guides / Self-Hosting & Infra
Node.js fs/promises Error Codes: ENOENT, EEXIST, ENOTEMPTY, EISDIR, Recursive mkdir and Atomic Writes
Executed on Node 22: error code and syscall for missing files, existing and nested directories, non-empty rmdir, reading a directory, writing into a missing directory, wx exclusive create and rename into a missing folder, plus recursive mkdir, rm force and invalid UTF-8 reads.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →