Merge pull request #498 from scamdotnet/master

fix 'nvm: command not found'
pull/499/head
Botspot 5 years ago committed by GitHub
commit fa4f4794ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,8 +21,7 @@ fi
#Install nvm manager:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash || error "Failed to install nvm!"
#source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
export NVM_DIR="$HOME/.config/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

@ -8,6 +8,8 @@ function error {
}
#Uninstall NodeJS
export NVM_DIR="$HOME/.config/nvm"
cd $NVM_DIR
nvm uninstall default || error "Failed to purge Node.JS!"
#Remove nvm

Loading…
Cancel
Save