diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-21 17:00:00 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-21 17:00:34 -0600 |
| commit | cecc53ec71a3141779f9cf9e91a2cdd09995dfb3 (patch) | |
| tree | 3a0f8f884c30a1278ded25c749a1d7a79c82c062 /archsetup | |
| parent | c16e5f9c3a92df53aa759df660f4af1199205f2a (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-x | archsetup | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
