[BUG] Errors when starting Claude `Error: EINVAL: invalid argument, watch...`

Resolved 💬 2 comments Opened Feb 9, 2026 by samuelfekete Closed Mar 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I try to start Claude I see many of these errors (I redacted the home directory) :

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EINVAL: invalid argument, watch '/<home directory>/.claude'
    at watch (unknown)
    at new FSWatcher (node:fs:30:31)
    at watch (node:fs:300:23)
    at EUL (/$bunfs/root/claude:168:12522)
    at unB (/$bunfs/root/claude:168:17732)
    at _watchWithNodeFs (/$bunfs/root/claude:168:13003)
    at _handleDir (/$bunfs/root/claude:168:15744)
    at async _addToNodeFs (/$bunfs/root/claude:168:16329)
    at async <anonymous> (/$bunfs/root/claude:168:25739)
    at processTicksAndRejections (native:7:39)

What Should Happen?

Claude should start without errors

Error Messages/Logs

Steps to Reproduce

1) Start Claude.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.15

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗