diff --git a/scripts/setup.sh b/scripts/setup.sh index 039d8242..dbcb0381 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -591,6 +591,11 @@ else SYSTEM_NPM="$(which npm)" fi + # Set npm prefix to system location so all users can access packages + echo " Configuring npm global prefix to /usr/local..." + sudo "$SYSTEM_NPM" config set prefix /usr/local + ok "npm prefix set to /usr/local" + # Pi (coding agent) if has pi; then skip "pi (@mariozechner/pi-coding-agent)"