snow · 2026.5.15 10:06 · 조회 2

설치 및 업데이트

시스템 요구사항

항목요구사항
Node.js18.x 이상 (20.x LTS 권장)
npm8.x 이상
OSmacOS 12+, Ubuntu 20.04+, Windows 10+ (WSL2)
RAM최소 4GB (8GB 권장)
디스크500MB 이상 여유 공간

설치

글로벌 설치 (권장)

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

설치 확인

1claude --version2which claude

npx로 설치 없이 실행

1npx @anthropic-ai/claude-code

버전 관리

현재 버전 확인

1claude --version

최신 버전으로 업데이트

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

특정 버전 설치

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

자동 업데이트 설정

Claude Code는 실행 시 새 버전이 있으면 알림을 표시합니다. 자동 업데이트 비활성화:

1export CLAUDE_CODE_DISABLE_AUTOUPDATE=1

팀 환경 표준화

팀 전체가 동일한 버전을 사용하도록 관리합니다.

.nvmrc 활용

1# 프로젝트 루트에 Node.js 버전 고정2echo "20" > .nvmrc

온보딩 스크립트 예시

1#!/bin/bash2# setup-claude.sh3 4# Node.js 버전 확인5required_node="18"6current_node=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)7 8if [ "$current_node" -lt "$required_node" ]; then9  echo "Node.js $required_node 이상이 필요합니다. 현재: v$current_node"10  exit 111fi12 13# Claude Code 설치 또는 업데이트14if command -v claude &> /dev/null; then15  echo "Claude Code 업데이트 중..."16  npm update -g @anthropic-ai/claude-code17else18  echo "Claude Code 설치 중..."19  npm install -g @anthropic-ai/claude-code20fi21 22echo "Claude Code $(claude --version) 준비 완료"

프록시 환경 설정

회사 네트워크에서 프록시를 사용하는 경우:

1export HTTPS_PROXY=http://proxy.company.com:80802export HTTP_PROXY=http://proxy.company.com:80803export NO_PROXY=localhost,127.0.0.1,.internal.company.com

제거

1npm uninstall -g @anthropic-ai/claude-code2 3# 설정 파일 삭제 (선택)4rm -rf ~/.claude

댓글

아직 댓글이 없습니다.

댓글을 작성하려면 로그인이 필요합니다.