pip nvm npm yarn maven gradle yay 使用國內鏡像源

pip nvm npm yarn maven gradle yay 使用國內鏡像源

nvm

export NVM_NODEJS_ORG_MIRROR="https://npm.taobao.org/mirrors/node"

npm

npm config set registry https://registry.npm.taobao.org

yarn

yarn config set registry https://registry.npm.taobao.org

pip

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

maven

<mirror>
  <id>nexus-aliyun</id>
  <name>Nexus aliyun</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
  <mirrorOf>central</mirrorOf> 
</mirror>

gradle

allprojects {
    repositories {
        maven { url 'file:///D:/dev_tools/maven_repository'}
        mavenLocal()
        maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" }
        maven { name "Bstek" ; url "http://nexus.bsdn.org/content/groups/public/" }
        mavenCentral()
    }

    buildscript { 
        repositories { 
            maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
            maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' }
            maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
        }
    }
}

yay

yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章