Upgrade Node & npm on your MacOSX
Tired of trying for options to upgrade your npm and node on you mac? Here, follow these two simple commands to get the latest or stable release and yes, forget the rest.
npm install -g node
npm install -g npm@latest
Please note that, you can specify
@stable. Both would work.