setup_node.sh 269 B

123456789101112
  1. #!/usr/bin/env bash
  2. if ! type "nvm" > /dev/null; then
  3. rm -rf ~/.nvm
  4. NVM_VERSION=0.33.8
  5. curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
  6. source $HOME/.nvm/nvm.sh
  7. fi
  8. nvm install # See `/.nvmrc` for current Node version