[BUG] Claude code silently crashes with code 1 if NODE_OPTIONS='--inspect' is set in project env file

Resolved 💬 2 comments Opened Oct 2, 2025 by kishorejat Closed Oct 3, 2025

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 run my node.js project with NODE_OPTIONS='--inspect' in my env file, Claude silently crashes. even if .env file is claudeignore file.

What Should Happen?

Claude code should run start in terminal.

Error Messages/Logs

It's a silent exit, does not throw any errors.

Steps to Reproduce

  1. create a node.js project
  2. create a env file.
  3. set NODE_OPTIONS='--inspect'

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.0

Claude Code Version

2.0.1

Platform

Google Vertex AI

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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