yarn config set registry https://registry.npm.taobao.org yarn config set disturl https://npm.taobao.org/dist yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ yarn config set electron-builder-binaries_mirror https://repo.huaweicloud.com/electron-builder-binaries/
关于华为其他的镜像还有如下:
1 2 3
yarn config set registry https://mirrors.huaweicloud.com/repository/npm/ yarn config set disturl https://mirrors.huaweicloud.com/nodejs/ yarn config set electron_mirror https://mirrors.huaweicloud.com/electron/
npm 的镜像设置如下:
1 2 3 4 5 6
npm config set registry https://mirrors.huaweicloud.com/repository/npm/ npm config set disturl https://mirrors.huaweicloud.com/nodejs/ npm config set electron_mirror https://mirrors.huaweicloud.com/electron/ npm config set registry https://registry.npm.taobao.org npm config set disturl https://npm.taobao.org/dist npm config set electron_mirror https://npm.taobao.org/mirrors/electron/