summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-21 17:00:00 -0600
committerCraig Jennings <c@cjennings.net>2026-01-21 17:00:34 -0600
commitcecc53ec71a3141779f9cf9e91a2cdd09995dfb3 (patch)
tree3a0f8f884c30a1278ded25c749a1d7a79c82c062 /archsetup
parentc16e5f9c3a92df53aa759df660f4af1199205f2a (diff)
fix(claude-code): use native installer instead of npm-global
Native install to ~/.local/bin allows auto-updates without sudo.
Diffstat (limited to 'archsetup')
-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