Use Claude Code official installer

- Replace Node.js/npm installation with Claude's official installer
- Cleaner and handles dependencies automatically
This commit is contained in:
Dominik Moritz Roth 2025-08-18 22:11:57 +02:00
parent 5de21476ad
commit 3ba8f9d1d4

View File

@ -172,14 +172,9 @@ echo "[+] Installing lsd, bat, and fastfetch..."
# Try to install fastfetch from repos first
dnf install -y fastfetch || echo "fastfetch not available in repos, skipping"
# Install modern Node.js and Claude Code
echo " - Installing modern Node.js..."
# Install Node.js 20 LTS from NodeSource repository
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - || echo "WARNING: NodeSource setup failed"
dnf install -y nodejs || echo "WARNING: Node.js installation failed"
# Install Claude Code via official installer
echo " - Installing Claude Code..."
npm install -g @anthropic-ai/claude-code || echo "WARNING: Claude Code installation failed"
curl -fsSL https://claude.ai/install.sh | bash || echo "WARNING: Claude Code installation failed"
# Install using fixed versions that should work
LSD_VERSION="1.0.0"