1. Download the file on the Node.js official website (I downloaded msi here, no need to manually configure environment variables), download address: Download | Node.js
2. Installation: Keep clicking Next, you can use the default path: C:\Program Files\nodejs
3. After installation: open cmd, use: node -v to check whether the version is displayed, if the version is displayed, the installation is successful, as shown in the figure below:
4. After the installation is complete, you can check whether npm is installed: npm -v, if the version number is displayed, the installation is successful
5. Create two new folders in the node installation path: node_global and node_cache, and then run the following command: npm config set prefix "C:\Program Files\nodejs\node_global"
npm config set prefix "C:\Program Files\nodejs\node_cache"
6. Check whether the change is successful: npm list -global, use: npm config list to view all configuration information