install npm
This commit is contained in:
parent
c4edd61fbe
commit
1a9f6b7e40
10
install.sh
10
install.sh
|
@ -170,7 +170,15 @@ 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
|
||||||
echo "youhou";
|
if [ "$(whoami)" != "$username" ]; then
|
||||||
|
su - $username
|
||||||
|
fi
|
||||||
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||||
|
nvm install v18
|
||||||
|
echo "ok pour npm";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue