install npm 4
This commit is contained in:
		| @@ -170,8 +170,11 @@ fi | ||||
| echo -e "${PURPLE}${BOLD}Install NPM ? (y/n) ${RESET}" | ||||
| read answer | ||||
| if [[ "$answer" == "y" ]]; then | ||||
|     if [[ -z "$username" ]]; then | ||||
|         username = $(getent passwd 1000 | cut -d: -f1) | ||||
|     fi | ||||
|     su -c '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/.nvm" &&\ | ||||
|     [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\ | ||||
|     [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\ | ||||
|     nvm install v18' $username  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Valentin
					Valentin