There is installation on the uninstall, uninstall Tutorial reference: http://www.cnblogs.com/EasonJim/p/6287141.html
First, the official Download pkg installation package 1, installation
To the official website https://nodejs.org/en/download
Simply double-click to run.
2. Update
Download the latest installation package directly from the official website and install it all the way to the next step.
Reference: Http://stackoverflow.com/questions/11284634/upgrade-nodejs-to-the-latest-version-on-mac-os
Second, use the Brew Package Manager for installation 1, installation
Prerequisite, install Package Manager Brew First, refer to: http://www.cnblogs.com/EasonJim/p/6287098.html
After you have the above premise, enter:
Brew Install node
After the installation is successful, verify and enter:
Node-vnpm-v
2. Update
Run brew updatebrew upgrade NODENPM install-g NPM separately// One run Brew update && Brew upgrade node && NPM install-g NPM
If an error occurs while running Brew update, refer to: http://www.cnblogs.com/EasonJim/p/6287283.html
Reference: Http://stackoverflow.com/questions/11284634/upgrade-nodejs-to-the-latest-version-on-mac-os
Configuring the node. JS Environment under Mac (Mac 10.12)