From 1e8f47ab558a289eb261c00ed535e4bbecafdecc Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 19 Jan 2026 14:44:45 -0600 Subject: fix(archsetup): fix npm global install and add wireless-regdb - Run npm install -g as root (global install requires root perms) - Add wireless-regdb to prerequisites (prevents kernel regulatory warnings) --- archsetup | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/archsetup b/archsetup index 3d06893..a82318c 100755 --- a/archsetup +++ b/archsetup @@ -483,6 +483,7 @@ install_gpu_drivers() { prerequisites() { # why these software packages are 'required' # linux-firmware - ensuring hardware can be detected properly + # wireless-regdb - regulatory database for wireless (prevents kernel warnings) # base_devel - required tools to compile # ca_certificates - for validation of keyrings, etc. # coreutils - comparing package lists @@ -514,7 +515,7 @@ prerequisites() { display "subtitle" "Required Software" - for software in linux-firmware base-devel ca-certificates \ + for software in linux-firmware wireless-regdb base-devel ca-certificates \ coreutils curl git go ntp openssh python \ stow tar vi zsh; do pacman_install "$software" @@ -1368,9 +1369,9 @@ developer_workstation () { pacman_install npm # Node-js package manager aur_install nvm # Node-js version manager - # AI coding assistant + # AI coding assistant (global install requires root) action="installing claude-code via npm" && display "task" "$action" - (sudo -u "$username" npm install -g @anthropic-ai/claude-code >> "$logfile" 2>&1) || \ + (npm install -g @anthropic-ai/claude-code >> "$logfile" 2>&1) || \ error "error" "$action" "$?" # HTML -- cgit v1.2.3