From cecc53ec71a3141779f9cf9e91a2cdd09995dfb3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 21 Jan 2026 17:00:00 -0600 Subject: fix(claude-code): use native installer instead of npm-global Native install to ~/.local/bin allows auto-updates without sudo. --- archsetup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archsetup') diff --git a/archsetup b/archsetup index 7d62fd4..a80b3d4 100755 --- a/archsetup +++ b/archsetup @@ -1364,9 +1364,9 @@ developer_workstation () { pacman_install npm # Node-js package manager aur_install nvm # Node-js version manager - # AI coding assistant (global install requires root) - action="installing claude-code via npm" && display "task" "$action" - (npm install -g @anthropic-ai/claude-code >> "$logfile" 2>&1) || \ + # AI coding assistant (native install to ~/.local/bin) + action="installing claude-code via native installer" && display "task" "$action" + (sudo -u "$username" bash -c 'curl -fsSL https://claude.ai/install.sh | sh' >> "$logfile" 2>&1) || \ error "error" "$action" "$?" # HTML -- cgit v1.2.3