claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude Code requires Node.js version 18 or higher to be installed.

Open syfenx opened this issue 1 year ago • 81 comments

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?

Image

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

syfenx avatar Sep 30 '25 00:09 syfenx

I also encountered this issue. My node is v20.19.3

Image

HenryLian66 avatar Sep 30 '25 02:09 HenryLian66

@HenryLian66 use it from the command line for now, don't use it in vscode like that

syfenx avatar Sep 30 '25 03:09 syfenx

Awesome session limit reached with no warning it's about to end, y'all really did great with 2.0!

syfenx avatar Sep 30 '25 03:09 syfenx

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.

tony-0130 avatar Sep 30 '25 03:09 tony-0130

The same problem with node v22.14.0.

Tshoiasc avatar Sep 30 '25 03:09 Tshoiasc

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

it-sha avatar Sep 30 '25 05:09 it-sha

Im also experiencing the same issue. MacOS : 26.0.1 Node.js : v20.19.4

TonnyWong1052 avatar Sep 30 '25 06:09 TonnyWong1052

Same problem node --version v18.20.6

mozhn avatar Sep 30 '25 06:09 mozhn

Same problem here

node --version v18.20.8

joselhs avatar Sep 30 '25 07:09 joselhs

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.

arendaj4 avatar Sep 30 '25 07:09 arendaj4

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

NuIIPointer avatar Sep 30 '25 07:09 NuIIPointer

same, Nodejs v22.6.0 reinstalled claude code, reinstalled vscode extension, restarted - didn't work!

roman-supy-io avatar Sep 30 '25 07:09 roman-supy-io

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.

VijayN10 avatar Sep 30 '25 08:09 VijayN10

How did you uninstall claude?

teees013013 avatar Sep 30 '25 09:09 teees013013

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)

avanturist888 avatar Sep 30 '25 09:09 avanturist888

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)

aarontraynor avatar Sep 30 '25 09:09 aarontraynor

Same problem here

Intevel avatar Sep 30 '25 09:09 Intevel

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.

davidclothier avatar Sep 30 '25 09:09 davidclothier

same issue here on node v22

amir-malek avatar Sep 30 '25 10:09 amir-malek

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.

mohammadmrd74 avatar Sep 30 '25 11:09 mohammadmrd74