fix 'nvm: command not found' for Node.js install script

pull/463/head
Itai Nelken 5 years ago committed by GitHub
parent a8c93df876
commit 4e9a7f0b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,10 @@ 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
#source ~/.bashrc
export NVM_DIR="$HOME/.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
#Install NodeJS:
nvm install --lts

Loading…
Cancel
Save