1. Install Node.js and npm
# Update package index
sudo apt update
# Install curl if not already installed
sudo apt install -y curl
# Add NodeSource repository
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
# Install Node.js (includes npm)
sudo apt install -y nodejs
Verify Installation
node --version
npm --version
2.Install Claude Code
npm install -g @anthropic-ai/claude-code