brew install nvm

nvm install 5
nvm use 5
nvm alias default 5

# Globally install with npm

packages=(
    diff-so-fancy
    grunt
    gulp
    http-server
    nodemon
    release-it
    spot
    svgo
    tldr
    underscore
    vtop
)

npm install -g "${packages[@]}"

brew install nvm

nvm install 0.12
nvm use 0.12
nvm alias default 0.12

# Globally install with npm

packages=(
    diff-so-fancy
    grunt
    gulp
    http-server
    nodemon
    release-it
    spot
    svgo
    tldr
    underscore
    vtop
)

npm install -g "${packages[@]}"

--- 
+++ 
@@ -1,8 +1,8 @@
 brew install nvm
 
-nvm install 5
-nvm use 5
-nvm alias default 5
+nvm install 0.12
+nvm use 0.12
+nvm alias default 0.12
 
 # Globally install with npm
 
Install and use node v5 by default
