Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

换源集合 #77

Open
AllanChain opened this issue Feb 28, 2020 · 0 comments
Open

换源集合 #77

AllanChain opened this issue Feb 28, 2020 · 0 comments
Labels
blog: cheatsheet |108686978-1ae51480-7531-11eb-93c7-d201146b237d.jpg @post This is a blog post

Comments

@AllanChain
Copy link
Owner

AllanChain commented Feb 28, 2020

View Post on Blog

各种换源,我要的都在这里了。针对天朝就不用国际语言了 😄


众所周知,天朝网络环境需要换源来支撑,闲言少叙:

https://mirrors.tuna.tsinghua.edu.cn/

pip

https://mirrors.tuna.tsinghua.edu.cn/help/pypi/

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

NPM

npm config set registry https://registry.npm.taobao.org
npm config set registry https://repo.huaweicloud.com/repository/npm/
npm config set registry https://mirrors.cloud.tencent.com/npm/

sharp 源

yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"

electron 源

npm config set electron_mirror https://npm.taobao.org/mirrors/electron/

docker

/etc/docker/daemon.json 或者直接 Docker Desktop 的 GUI 界面里修改:

"registry-mirrors": [
    "https://dockerproxy.com",
    "https://mirror.baidubce.com/",
    "https://ccr.ccs.tencentyun.com/",
    "https://hub-mirror.c.163.com"
]

Golang

export GO111MODULE=on
export GOPROXY=https://goproxy.cn

Julia

export JULIA_PKG_SERVER=https://mirrors.tuna.tsinghua.edu.cn/julia

maven

$HOME/.gradle/init.gradle

allprojects {
  repositories {
    maven {
      url 'https://maven.aliyun.com/repository/public/'
    }
    mavenLocal()
    mavenCentral()
  }
}
@AllanChain AllanChain changed the title 换源集合 | AC's Blog 换源集合 Jun 30, 2020
@AllanChain AllanChain added blog: cheatsheet |108686978-1ae51480-7531-11eb-93c7-d201146b237d.jpg @post This is a blog post labels Jun 30, 2020
github-actions bot pushed a commit that referenced this issue Aug 20, 2020
github-actions bot pushed a commit that referenced this issue Jan 5, 2021
github-actions bot pushed a commit that referenced this issue Jan 28, 2021
github-actions bot added a commit that referenced this issue Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog: cheatsheet |108686978-1ae51480-7531-11eb-93c7-d201146b237d.jpg @post This is a blog post
Projects
None yet
Development

No branches or pull requests

1 participant