1. Download the installation package Download | Node.js (nodejs.org)
2. Unzip and create the global directory and cache directory
npm config set prefix "E:\nodejs\node-v16.13.1-win-x64\node_global"
npm config set cache "E:\nodejs\node-v16.13.1-win-x64\node_cache"
3. Configure system environment variables
Create a new system variable NODE_JS
Find the path and set it as follows
4. Set up domestic Taobao mirror
# 设置镜像
#npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm config set registry https://registry.npm.taobao.org
#安装 node-sass
npm install node-sass