Installation

Step 1: Install Node.js

Node.js is a JavaScript runtime built on Chrome's V8 engine that enables server-side scripting and the building of scalable network applications.

To install Node.js, download the installer from the official website (https://nodejs.org ), run the setup file, and follow the installation prompts.

Alternatively, you can use a package manager like brew on macOS or apt on Linux.

use brew in MacOS

1
# for MacOS, if you already have brew installed
2
brew install node

use apt in Linux

1
# for Linux, use apt to install Node.js
2
sudo apt install nodejs
3
sudo apt install npm

download and install directly in Windows

Visit the Node.js official website: nodejs.org

Select a version to download:

  • LTS version (Long Term Support): Suitable for most users, more stable

  • Current version: Includes the latest features

Installation Steps:

  • Double-click the downloaded .msi installation file

  • Follow the installation wizard, usually just click "Next"

  • The installer will automatically configure environment variables

  • npm (Node Package Manager) will be installed by default

After installation, check the version in your terminal:

1
node -v
2
# You should see something like: v23.11.0
3
 
4
npm -v
5
# You should see something like: 10.9.2

If you see the version numbers, it means Node.js has been successfully installed.

Step 2: Install Claude code

claude-code is a Node.js package used to interact with Anthropic's Claude AI model. It provides a simple interface that allows developers to easily communicate with the Claude model, enabling them to integrate its functionality into their applications.

Install claude-code using npm (which you installed earlier):

1
npm install -g @anthropic-ai/claude-code

Once installed, check the version to verify the installation:

1
claude --version
2
# You should see something like: 2.0.2 (Claude Code)
Installation - Documentation | Claude ide | Affordable AI Coding in Your IDE