npm-yarn-go国内镜像



NPM设置淘宝镜像
1.查询当前配置的镜像
npm get registry
> https://registry.npmjs.org/


设置成淘宝镜像
npm config set registry http://registry.npm.taobao.org/

2.换成原来的
npm config set registry https://registry.npmjs.org/

Yarn 设置淘宝镜像
1.查询当前配置的镜像
yarn config get registry
> https://registry.yarnpkg.com

设置成淘宝镜像
yarn config set registry http://registry.npm.taobao.org/

Go编译时报错更改镜像
Get "https://proxy.golang.org/github.com/%21masterminds/semver/v3/@v/v3.1.0.mod": dial tcp 34.64.4.113:443: i/o timeout

export GOPROXY=https://mirrors.aliyun.com/goproxy/
阅读量: 412
发布于:
修改于: