ENOSPC in Node.js — What It Means and How to Fix It

What the Node.js/npm error ENOSPC means and how to resolve it.

Published October 26, 2026

ENOSPC means an operation failed because the disk (or, on Linux, sometimes the file-watcher limit) is out of space/capacity.

Key points

  • Check available disk space with df -h; on Linux this can also mean the inotify watch limit was exceeded, fixable by raising fs.inotify.max_user_watches
More JavaScript articles