From 1953b011488b390d9433249189ee25fbf2f824d7 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Fri, 17 Oct 2025 08:04:35 +0200 Subject: [PATCH] Install node using volta --- bin/azw-setup-user | 9 +++++++-- modules/05-install-brew-apps.sh | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/azw-setup-user b/bin/azw-setup-user index 825e498..f7d05a1 100755 --- a/bin/azw-setup-user +++ b/bin/azw-setup-user @@ -138,7 +138,7 @@ function getHomebrewDirectoryPath() { print -- ${homebrew_prefix:-$(getDefaultHomebrewPrefix)}/Homebrew } -function configure_folders() { +function configureFolders() { local dirPath for dirPath in ${HOME}/bin ${HOME}/.vim/{backups,swaps}; do [[ ! -d ${dirPath} ]] && indicateActivity -- "Creating ${dirPath}" mkdir ${dirPath} @@ -146,10 +146,15 @@ function configure_folders() { indicateActivity -- 'Hide folders' hideFolders } +function installNode() { + volta install node +} + function main() { lop -y h1 -- -i 'Setup User' [[ $(id -u) -eq 0 ]] && { loptty -- -e 'Command must not be run as root.' -e $dirPath; return 16 } - configure_folders + configureFolders + indicateActivity -- 'Install node' installNode local homebrew_prefix=`getDefaultHomebrewPrefix` local homebrew_directory=`getHomebrewDirectoryPath` checkExecPrerequisites || return 17 diff --git a/modules/05-install-brew-apps.sh b/modules/05-install-brew-apps.sh index aa345e9..a3d279e 100755 --- a/modules/05-install-brew-apps.sh +++ b/modules/05-install-brew-apps.sh @@ -75,7 +75,6 @@ function installBrews() { installBrew imap-backup installBrew imapsync installBrew nmap - installBrew node installBrew pdfgrep installBrew php installBrew python @@ -85,6 +84,7 @@ function installBrews() { installBrew sqlite installBrew tree installBrew tidy-html5 + installBrew volta installBrew yq fi }