NPM镜像代理设置

用户目录C:\Users\xxx下建立.npmrc文件,内容如下:

registry="http://registry.npmmirror.com"
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
SASS_BINARY_SITE="https://npmmirror.com/mirrors/node-sass"

旧镜像已经停止解析
https://npm.taobao.org/

posted @ 2022-05-31 17:45  Macrored  阅读(131)  评论(0编辑  收藏  举报