1// to see which versions of node you have run:
2nvm ls
3
4// example:
5// nvm ls
6// v8.10.0
7// -> v8.16.0
8// v10.21.0
9// system
10// default -> 8.16.0 (-> v8.16.0)
11
12// in this case use
13nvm use 10.21.0
14
15// you can also uninstall and reinstall if you are having issues
16// by following the steps in:
17// https://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/
1#!/bin/sh
2
3set -e
4
5cd ~/.nvm
6
7git fetch --tags
8TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
9echo "Checking out tag $TAG..."
10git checkout "$TAG"
11
12source ~/.nvm/nvm.sh