#!/bin/bash
set -euo pipefail

if ! command -v npm &>/dev/null; then
    export NVM_DIR="$HOME/.nvm"
    [[ -s "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
fi

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