Install node.js on MAC system
1 Open node official website
https://nodejs.org/zh-cn/
You can see that the official website can identify the macOS system, and then click the stable version to download
2 After the download is complete
Open the Finder Double-click to open the file
The following page appears
click to continue
The following page appears
Click Agree, the following page appears
Click Install and wait for the installation
The installation is successful, click Close.
3 View the installation status and version information
Open the mac terminal (focus search for "terminal" can also be found
Open a terminal and type
node -v
npm -v
Check whether the installation is successful, display the version information, indicating that the installation is successful