change Node.js install

pull/3611/head
chmistry 11 months ago
parent 3ab7d4a5f3
commit f71f8b332f
  1. 9
      install/immich-install.sh

@ -34,10 +34,11 @@ msg_info "Installing Node.js"
#$STD su immich -c "nvm install 20" #$STD su immich -c "nvm install 20"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh) $STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
#. ~/.bashrc # crashes with: /root/.bashrc: line 6: PS1: unbound variable export PS1=$'\h:\w\$'
export NVM_DIR="$HOME/.nvm" . ~/.bashrc # crashes with: /root/.bashrc: line 6: PS1: unbound variable
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm #export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion #[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
$STD nvm install 20 $STD nvm install 20
$STD export NODE_VERSION="$( node -v )" $STD export NODE_VERSION="$( node -v )"

Loading…
Cancel
Save