summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup6
1 files changed, 3 insertions, 3 deletions
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