The following commands update node.js on OSX to the most current version:
sudo npm cache clean -f sudo npm install -g n sudo n stable
the creative and the engineer
The following commands update node.js on OSX to the most current version:
sudo npm cache clean -f sudo npm install -g n sudo n stable