Files
dotfiles/install/20-nvm.sh
Andrejus 638c907c06 further cleanup
update docs and tests
2020-03-03 17:49:10 +00:00

25 lines
455 B
Bash
Executable File

#!/usr/bin/env bash
#
# After running this script:
# 1. nvm is installed
#
# 1. nvm is installed
if not_installed "nvm"; then
printf "Installing nvm...\n"
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
refresh
fi
printf "nvm is installed, upgrading...\n"
git --git-dir="$NVM_DIR/.git" pull
nvm update --lts node
nvm update node
nvm update npm
nvm --version
node --version
npm --version