Then you can install node js use homebrew easily.If homebrew does not exist, then run the below command in the terminal to install it on your macOS.
Homebrew/homebrew-core (git revision 2278 last commit )
#HOW TO UNINSTALL NODE JS ON MAC HOW TO#
Please read the article How To Set JAVA_HOME, MAVEN_HOME Environment Variable In macOS to learn how to add node bin folder in macOS $PATH value. If you want to use this Node.js version conveniently, you can add the bin folder full path ( /Users/zhaosong/Downloads/node-v8.12.0-darwin-圆4/bin ) to os system environment variable $PATH.$ cd /Users/zhaosong/Downloads/node-v8.12.0-darwin-圆4 The node and npm executable file are all saved in the bin folder. Then you can find the bin folder under it. Unzip the zip file to a local folder, and cd into that folder in terminal.Download node js MacOS version binary file.Then you can use different versions Node.js. You can also download different versions of Node.js zip file, then unzip and save them in different folders.
If you want to use multiple Node.js versions in your macOS. Install / Uninstall Node,js Use macOS Binary. You can also run the below command which is provided by the node official website to uninstall Node.js completely.usr/local/lib/, /usr/local/include/, /Users/$user_home_dorectory/lib/, /Users/$user_home_dorectory/local/include Uninstall node js in this way is just to delete node, node_modules folder under below global or your personal folders ( for example/usr/local/lib/node,/usr/local/lib/node_modules).After installation, open a terminal in macOS, run node -v and npm -v in the terminal to verify the installation.And the npm( node package manager ) will be installed to /usr/local/bin/npm directory. It will be installed to /usr/local/bin/node directory. Process the installation as normal by clicking the next or continue button. Click the downloaded file to open the installer.Download Node.js mac installer (pkg file) from Node.js official site.Install / Uninstall Node.js Use Node Installer For macOS.