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

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

Published October 24, 2026

EACCES means Node was denied permission to access a file, directory, or port.

Key points

  • Ports below 1024 typically require elevated (root/sudo) privileges on Unix-like systems
  • Check file/directory ownership and permissions with ls -l when it involves the filesystem
More JavaScript articles