AI Study Online
AI Tutorials

Claude Code Essential Setup: The Must-Have Three Tools for Global Developers (Beginner's Guide)

5 min read

Before diving into Claude Code for local development, cross-border project building, or AI-powered programming, you need to set up three core runtime tools. These dependencies are non-negotiable—missing any will trigger startup failures, permission errors, or execution issues. This guide provides system-specific, one-click installation steps for Windows, macOS, and Linux, tailored for overseas developers to streamline pre-configuration.

The Three Indispensable Core Tools

  • **Node.js**: Powers the basic runtime environment, enabling CLI operations, dependency installation, and project execution.
  • **Git**: Facilitates code version control, repository synchronization, local commits, and remote pushes (critical for global team collaboration).
  • **Terminal Enhancement Tool**: Optimizes command-line input/output, boosts operational efficiency, and ensures compatibility across global systems.

Step 1: Install Node.js Runtime Environment

Choose the LTS (Long-Term Support) version for stability—avoid bleeding-edge releases to prevent version mismatches.

Related: Configure MCP Servers

Windows Installation

  • Download the LTS installer from the [official Node.js website](https://nodejs.org/en/download/).
  • Run the installer and check the box: *"Add to PATH"* (automatically configures environment variables).
  • Verify installation in Command Prompt (CMD) or PowerShell:
node -v  # Should return v20.x.x (LTS version)
npm -v   # Should return a matching npm version (e.g., 10.x.x)

macOS Installation

Use Homebrew (recommended for global developers) for seamless setup:

# Install Homebrew first (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Node.js LTS
brew install node@20

# Verify installation
node -v
npm -v

Linux Installation (Ubuntu/Debian)

# Update package list
sudo apt update

# Install Node.js LTS and npm
sudo apt install -y nodejs npm

# Verify installation
node -v
npm -v

Step 2: Install Git for Version Control

Git is mandatory for managing code across local machines and remote repositories (e.g., GitHub, GitLab)—essential for overseas team collaboration.

Related: 12 Essential Claude Code Terminal Commands

Windows Installation

  • Download Git from the [official Git website](https://git-scm.com/download/win).
  • Run the installer:
  • Check *"Use Git from the command line"* to add Git to PATH.
  • Keep default settings for other options (compatible with global development workflows).
  • Verify installation:
git --version  # Should return git version 2.x.x

macOS Installation

Use Homebrew for quick setup:

brew install git

# Verify installation
git --version

Linux Installation (Ubuntu/Debian)

sudo apt update
sudo apt install -y git

# Verify installation
git --version

Post-Installation Configuration (Critical for Global Teams)

Set your global Git identity to link commits to your account:

git config --global user.name "Your Full Name"
git config --global user.email "your-email@example.com"  # Match your GitHub/GitLab email

Step 3: Install Terminal Enhancement Tool (Windows Terminal)

For Windows users, the default CMD/PowerShell lacks modern features. Windows Terminal (Microsoft's official tool) supports multiple tabs, Unicode, and global character sets—ideal for overseas development.

Related: ECC's Zero-Pitfall Setup Guide

Windows Installation

  • Open Microsoft Store and search for *"Windows Terminal"*.
  • Click *"Install"* (free, no additional configuration needed).
  • Launch Windows Terminal: It automatically detects Git Bash, PowerShell, and CMD for flexible switching.

macOS/Linux Alternative

macOS Terminal and Linux Terminator are already robust. For enhanced functionality, install Oh My Zsh:

# Install Oh My Zsh (macOS/Linux)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Verify installation (restart terminal first)
echo $SHELL  # Should return /bin/zsh

Final Verification: Ensure All Tools Work Together

Run these commands in your terminal to confirm the setup is complete:

Related: Git & GitHub Beginner's Guide

# Check Node.js and npm
node -v && npm -v

# Check Git
git --version

# Test npm package installation (verify Node.js runtime)
npm install -g hello-world-npm
hello-world-npm  # Should output "Hello World!"

Troubleshooting Common Issues for Overseas Developers

  • **Network Errors During Installation**: Use a regional mirror (e.g., npm Taobao mirror for APAC, npm Europe mirror for EU):

```bash

# Set npm mirror (EU example)

npm config set registry https://registry.npmjs.org/

```

  • **Permission Denied (Linux/macOS)**: Add `sudo` before commands (e.g., `sudo npm install -g ...`).
  • **PATH Configuration Issues**: Reinstall the tool and ensure "Add to PATH" is checked (Windows) or use `export PATH="$PATH:/usr/local/bin"` (Linux/macOS).

With these three tools installed, you're fully prepared to run Claude Code for global development projects—from local AI programming to cross-border team collaboration. Next, you can proceed to install Claude Code and start building overseas-facing applications, tools, or SaaS products.

Frequently Asked Questions

Why do I need Node.js for Claude Code?

Claude Code itself is a Node.js application. Without Node.js, the claude command will not work. Install it once and npm becomes available for other tools too.

Can I skip Git if I work alone?

Technically yes, but not recommended. Git tracks changes, lets you undo mistakes, and syncs with GitHub. When Claude Code makes a change you dislike, Git lets you undo it instantly.

Is Windows Terminal really necessary?

Not strictly required, but it improves the experience with multiple tabs and Unicode support. PowerShell works, but lacks modern features. On Mac/Linux, built-in terminals are sufficient.

Share this article

Related Articles

AI TutorialsBeginner

How to Write Prompts That Actually Work: The 5-Point Framework

Vague prompts get mediocre answers. Master the 5-Point Prompt Framework — Role, Context, Task, Format, Constraints — and get dramatically better results from any AI tool.

5 min read
PromptsPrompt EngineeringFramework