写到 testerhome 上备忘下,免得自己忘记了
保存到 ~/.npmrc
registry=https://registry.npm.taobao.org/
disturl=https://npm.taobao.org/dist
或者
npm config set registry https://registry.npm.taobao.org/
npm config set disturl https://npm.taobao.org/dist
Save to ~/.pip/pip.conf
[global]
index-url = https://pypi.doubanio.com/simple
[install]
trusted-host = pypi.doubanio.com
或者
# require pip >= 10.0.0
pip config set global.index-url https://pypi.doubanio.com/simple
其他源: https://pypi.tuna.tsinghua.edu.cn/simple
build.gradle
//两个地方:一个是 buildscript 的仓库地址
buildscript {
repositories {
maven {
//阿里云镜像
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
//一个是工程的仓库地址
allprojects {
repositories {
maven {
//阿里云镜像
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}
}