How to update nodejs on OS X Adding here as reference. node -v npm cache clean -f npm install -g n n stable\ node -v