## https://pip.pypa.io/en/stable/user_guide/#config-file # 全局生效 # Like-Unix(Linux) vim /etc/pip.conf # macOS vim /Library/Application Support/pip/pip.conf # Windows notepad C:\ProgramData\pip\pip.ini # https://developer.aliyun.com/mirror/pypi ## 阿里云源 [global] index-url = https://mirrors.aliyun.com/pypi/simple/
[install] trusted-host=mirrors.aliyun.com
Go proxy
1 2 3 4 5 6 7
## Go 1.13 及以上(推荐) go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct # https://goproxy.io/zh/ go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct # go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct/
NodeJS npm源
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
npm config set registry https://registry.npm.taobao.org ### npm config set <key> <value> npm config get [<key>] npm config delete <key> npm config list [--json] npm config edit npm set <key> <value> npm get [<key>]
### yarn npm install yarn -g yarn config set registry https://registry.npm.taobao.org/ yarn config get registry yarn install