Set up Taobao mirror
npm config set registry http://registry.npmmirror.com
Configuration file:
node_cache node_global is newly created in the installation directory. These two folders need to be set before they can be used.
You can set them on the command line or specify
node in the configuration file. The default configuration file is generated under the c drive.
C:\Users{user}.npmrc
Edit the .npmrc file to see the Taobao image you just set, and add the following two lines of configuration
sass_binary_site=https://registry.npmmirror.com/-/binary/node-sass
prefix=D:\zkwl\tool\nodejs\node_global
cache=D:\zkwl\tool\nodejs\node_cache