1. Install Xcode
https://developer.apple.com/xcode/
Search the official website to download and install Xcode.
2, installation Homebrew
Homebrew is installed to facilitate the installation of the following program software
A. Go to homepage https://brew.sh/index_zh-cn.html
b, copy the installation Code of Homebrew home page to install in terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
C, enter BREW-V in the terminal if the installation is successful, the homebrew version information will be displayed
3, Installation Nodejs
A. Enter the brew install Nodejs in the terminal
B. After successful installation, enter NODE-V to view version information
4. Installing MongoDB
A, enter the brew install MongoDB in the terminal
B. After successful installation, enter MONGO-V to view version information
5. Installing Redis
A. Enter the brew install Redis in the terminal
B. After successful installation, enter REDIS-CLI-V to view version information
The first Experience development environment of node. JS under MAC builds