From a36187b9f143dc15e1b34a6cfc5c1c3ff8e93229 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 19:09:09 +0100 Subject: [PATCH] install npm 3 --- install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 58ff833..4ccc638 100644 --- a/install.sh +++ b/install.sh @@ -170,12 +170,11 @@ fi echo -e "${PURPLE}${BOLD}Install NPM ? (y/n) ${RESET}" read answer if [[ "$answer" == "y" ]]; then - su - $username -c '\ -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\ -export NVM_DIR="/home/${username}/.nvm" &&\ -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\ -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\ -nvm install v18' + su -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\ + export NVM_DIR="/home/${username}/.nvm" &&\ + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\ + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\ + nvm install v18' $username echo "ok pour npm"; fi