[BUG] Claude Code requires Node.js version 18 or higher to be installed.
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?
node --version v22.16.0
stopped right in the middle of a project for this, get ready for a refund, this is craziness.
What Should Happen?
It should work correctly
Error Messages/Logs
Steps to Reproduce
Open claude and try to use it.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
claude --version 2.0.0 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
No response
I also encountered this issue. My node is v20.19.3
@HenryLian66 use it from the command line for now, don't use it in vscode like that
Awesome session limit reached with no warning it's about to end, y'all really did great with 2.0!
I have also encounter same problem with nodejs version v24.9.0.
And thanks about @syfenx , the suggestion about to run claude code with command line works for me.
The same problem with node v22.14.0.
Same problem. Node v22.19.0
Cursor Version: 1.7.12 (user setup) VSCode Version: 1.99.3 Commit: b3f1951240d5016648330fab51192dc03e8d7050 Date: 2025-09-28T00:58:08.696Z Electron: 34.5.8 Chromium: 132.0.6834.210 Node.js: 20.19.1 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.22631
IDE is run under WSL
Im also experiencing the same issue. MacOS : 26.0.1 Node.js : v20.19.4
Same problem node --version v18.20.6
Same problem here
node --version v18.20.8
I had the same error with Node v22.13.1 installed. Reinstalling claude-code helped, along with updating the VS Code plugin and restarting VS Code.
I had the same error with Node v22.13.1 installed. Reinstalling claude-code helped, along with updating the VS Code plugin and restarting VS Code.
Same for me. Works after reinstalling claude-code and restarting VSCode
same, Nodejs v22.6.0 reinstalled claude code, reinstalled vscode extension, restarted - didn't work!
Getting the same.
Update / Resolution
Initially saw the message:
“Error: Claude Code requires Node.js version 18 or higher to be installed.”
Steps taken:
Installed Node.js ≥18 both locally (macOS, v24.1.0) and on the cluster via nvm (v20.19.5), verified in both bash and /bin/sh.
Confirmed the environment was configured correctly, but the error persisted.
Later, a new error appeared:
API Error: 401 ... OAuth token has expired
Fix:
Logged out of the extension, uninstalled it, reinstalled, and re-authorized when prompted.
After this, Claude Code started working locally and in Remote-SSH sessions as well.
How did you uninstall claude?
Environment:
- Windows 11 with WSL2
- Cursor running on Windows, project located in WSL filesystem
- Node.js installed in WSL only
Temporary Solution
Install Node.js on Windows host system (not just WSL)
I have the same issue with node v24.3.0 and Claude Code v2.0.1
Reverting the VSCode extension to v1.0.127 has resolved the issue (the issue also exists in 1.0.128)
Same problem here
For context: I'm on a Macbook Pro M1 Pro. Both projects use the same Node version: v18.20.4.
I have separate VSCode windows for each project.
In Project A (opened yesterday): Claude Code works after restarting the extension.
In Project B (new window): Claude Code shows the error from this issue.
Important: When I run the same Project B from an external terminal, Claude Code works fine. This suggests the issue is specific to the VSCode environment for this project.
same issue here on node v22
Mine started working after I reinstalled claude-code on Ubuntu and updated VS Code to the latest version.
npm uninstall -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code
finally restarted VS Code.