Node version mismatch inside Claude Code

Resolved 💬 3 comments Opened Jul 8, 2025 by sujanbasnet Closed Jul 8, 2025

There is a discrepancy between the Node.js version reported in my system terminal and the one shown when using the terminal inside Claude code. I use Volta to switch between different node versions. I use package.json to define the node version needed in the project. This works normally, but when Claude code runs node -v it get's a different version. This means any terminal commands Claude executes is using the incorrect version of Node.

<img width="686" height="487" alt="Image" src="https://github.com/user-attachments/assets/8250352e-a67a-420f-a4eb-90c9a4bd9bcc" />

Environment:
Claude Code version 1.0.43
Terminal: iTerm2 3.5.14

View original on GitHub ↗

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