Skip to content

ProperPath

Menu

Free resources · Getting started

Node JS for Claude Code and when you need it

Do you need Node JS for Claude Code? Choose an installation method for your terminal and check which executable your shell starts.

Built by ProperPath

Which installer should I use?

Start with your team's setup instructions if you're working on a managed machine. If you have already set up the terminal app, you can go straight to how to use Claude Code. Otherwise, open the setup page and choose the command for the terminal in front of you. macOS Terminal and a Linux shell use the same native installation command. Windows PowerShell, Windows Command Prompt, and a Linux shell inside WSL have different instructions. Match the command to the shell, even if two shells share the same laptop.

If your Mac already uses Homebrew to manage developer tools, the documented command is brew install --cask claude-code. On Windows, WinGet users can run winget install Anthropic.ClaudeCode. Keep a note of the method you choose. Homebrew and WinGet handle later upgrades through their own commands, while native installations normally update in the background.

If you wanted the desktop app or editor extension, check which Claude app you need before installing a second interface.

Which copy will this terminal run?

After installation, open a new terminal window. On macOS, Linux, or WSL, run these two lines in that window.

command -v claude
claude --version

The first line identifies what the shell resolves when you type claude. The second asks that command to report its version. In PowerShell, use (Get-Command claude).Source for the first line and the same version command for the second.

To see whether your copy depends on Node.js, run this third line. It lists any global npm copy of Claude Code.

npm ls -g @anthropic-ai/claude-code

On our native Mac installation it printed (empty), so no npm copy exists. If it lists a version, your claude came from npm and needs Node.js. If npm itself is not found, you have no npm copy either.

The version check works before a chat starts.

Where do you go after the install?

Check your installation

Run the first two lines in a fresh terminal. Pass: line 1 prints a path ending in claude, and line 2 prints a number followed by (Claude Code). Anything else, such as an empty line or command not found, means Claude Code is not installed in that shell. On our existing Mac installation, line 1 printed a path under the user's .local/bin directory and line 2 returned 2.1.330 (Claude Code). Your version and directory can differ. Save your own two lines of output in your setup notes. If a teammate later sees a different version, comparing paths gives you a specific difference to investigate.

Then run npm ls -g @anthropic-ai/claude-code. A result of (empty), or no listing, means your claude does not need Node.js. A listed version means it came from npm.

If the shell cannot find the command, check the installer output and the PATH instructions for your platform. PATH is the list of folders your shell searches. Running the same check from a fresh terminal helps distinguish a missing command from a window that still has the old settings.