Software⏱️ 2 min read📅 2026-05-31

How to Fix: Node.JS: Getting error : [nodemon] Internal watch failed: watch ENOSPC

Error with nodemon on Ubuntu 14.04

Quick Answer: Try running `sudo apt-get update && sudo apt-get install -f` to fix the package index, then try running `nodemon app.js` again.

The error message '[nodemon] Internal watch failed: watch ENOSPC' is often caused by a lack of disk space or an issue with the file system. This can occur when Node.js is unable to monitor changes to files due to insufficient disk space.

⚠️ Common Causes

  • Lack of disk space

🛠️ Step-by-Step Verified Fixes

Method 1: Clear Disk Space

  1. Step 1: Run the command `sudo df -h` to check your disk usage and identify which partition is running low on space.
  2. Step 2: Use the command `sudo apt-get autoremove` or `sudo apt-get autoclean` to remove unnecessary files and free up disk space.

Method 2: Check File System Permissions

  1. Step 1: Run the command `sudo fsck -t` to check for file system errors.
  2. Step 2: Use the command `sudo chown -R $USER:$USER /path/to/directory` to change the ownership of the directory to your user account, if necessary.

💡 Conclusion

By following these steps, you should be able to resolve the '[nodemon] Internal watch failed: watch ENOSPC' error and get your Node.js project running smoothly again.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions