Npm配置最新国内镜像 淘宝 NPM 镜像站 npm config set registry CNPM安装 npm install -g cnpm --registry=https://registry.npmmirror.com # 注册模块镜像 npm set registry https://registry.npmmirror.com // node-gyp 编译依赖的 node 源码镜像 npm set disturl https://npmmirror.com/dist // 清空缓存 npm cache clean --force // 安装cnpm npm install -g cnpm --registry=https://registry.npmmirror.com