change Node.js install

This commit is contained in:
chmistry 2024-08-28 15:21:24 +02:00
parent 3e539579f7
commit 757b67bc71

View file

@ -35,13 +35,13 @@ msg_info "Installing Node.js"
#TODO script crashes at this point, attempt to install as immich user
#$STD su immich -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash"
$STD su immich -s /bin/bash -c <<EOF
bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
su immich -s /bin/bash -c "bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh)"
su immich -s /bin/bash -c <<EOF
export NVM_DIR="\$HOME/.nvm"
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh"
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion"
EOF
$STD su immich -s /bin/bash -c "nvm install 20"
su immich -s /bin/bash -c "nvm install 20"
#$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
#export PS1=$'\h:\w\$'