install npm 3
This commit is contained in:
parent
46a9aa638a
commit
a36187b9f1
11
install.sh
11
install.sh
|
@ -170,12 +170,11 @@ fi
|
||||||
echo -e "${PURPLE}${BOLD}Install NPM ? (y/n) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Install NPM ? (y/n) ${RESET}"
|
||||||
read answer
|
read answer
|
||||||
if [[ "$answer" == "y" ]]; then
|
if [[ "$answer" == "y" ]]; then
|
||||||
su - $username -c '\
|
su -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
|
export NVM_DIR="/home/${username}/.nvm" &&\
|
||||||
export NVM_DIR="/home/${username}/.nvm" &&\
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
nvm install v18' $username
|
||||||
nvm install v18'
|
|
||||||
echo "ok pour npm";
|
echo "ok pour npm";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue