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:
parent
6e47dfb7b6
commit
12fe681efa
@ -172,7 +172,12 @@ echo "[+] Installing lsd, bat, and fastfetch..."
|
|||||||
# Try to install fastfetch from repos first
|
# Try to install fastfetch from repos first
|
||||||
dnf install -y fastfetch || echo "fastfetch not available in repos, skipping"
|
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..."
|
echo " - Installing Claude Code..."
|
||||||
npm install -g @anthropic-ai/claude-code || echo "WARNING: Claude Code installation failed"
|
npm install -g @anthropic-ai/claude-code || echo "WARNING: Claude Code installation failed"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user