Install Node.js 20 LTS before Claude Code

- Use NodeSource repository for modern Node.js 20
- Replaces outdated Node.js 16 from AlmaLinux repos
- Ensures Claude Code compatibility
This commit is contained in:
Dominik Moritz Roth 2025-08-18 21:47:17 +02:00
parent 6e47dfb7b6
commit 12fe681efa

View File

@ -172,7 +172,12 @@ 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 Claude Code globally
# 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"
echo " - Installing Claude Code..."
npm install -g @anthropic-ai/claude-code || echo "WARNING: Claude Code installation failed"