1// Fix node not found first
2sudo chown -R `whoami`:admin /usr/local/include/node
3 sudo chown -R `whoami`:admin /usr/local/bin
4 sudo chown -R `whoami`:admin /usr/local/share
5 sudo chown -R `whoami`:admin /usr/local/lib/dtrace
6
7 brew link --overwrite node
8
9// Then:
10sudo npm cache clean -f
11sudo npm install -g n
12sudo n stable/lts