node upgrade mac os x code example Example: node upgrade mac os x $ node -v $ sudo npm install -g n $ sudo n latest