From f71f8b332ff10a8e42855818c5024ec96fe8c2c0 Mon Sep 17 00:00:00 2001 From: chmistry Date: Wed, 28 Aug 2024 13:49:09 +0200 Subject: [PATCH] change Node.js install --- install/immich-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/immich-install.sh b/install/immich-install.sh index 55a45f7b..f118d0df 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -34,10 +34,11 @@ msg_info "Installing Node.js" #$STD su immich -c "nvm install 20" $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 NVM_DIR="$HOME/.nvm" -[ -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 +export PS1=$'\h:\w\$' +. ~/.bashrc # crashes with: /root/.bashrc: line 6: PS1: unbound variable +#export NVM_DIR="$HOME/.nvm" +#[ -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 export NODE_VERSION="$( node -v )"