awesome-env-config-cn
各种开发语言项目环境国内(中国国内加速镜像)配置教程和部分实践经验,包括github.com, nodejs,npm,nvm, yarn, java, maven, gradle, python, mysys2, elasticsearch, php等等,更多正在加入中
源码地址:https://github.com/yunchaoq/awesome-env-config-cn
TODO 待补充的
欢迎大家一起补充
- ruby
- pod
- …
目录
linux
- 推荐使用阿里云镜像https://developer.aliyun.com/mirror/ 包括了各种镜像
github
- 推荐使用chrome插件 https://github.com/jadezi/github-accelerator/ 访问github对应的网站自动展示加速连接
- 国内镜像源1,推荐:https://hub.fastgit.org
- 国内镜像源2:https://github.com.cnpmjs.org 这个没有上面的快点
nodejs
-
nodejs 安装
-
直接下载安装(推荐使用nvm管理nodejs版本自由切换):
- 下载地址: http://npm.taobao.org/mirrors/node 选择对应的版本下载安装即可
-
nvm
-
linux或者mac
镜像源:https://hub.fastgit.org/nvm-sh/nvm
官方地址:https://github.com/nvm-sh/nvm
- 安装
- linux或者mac安装,镜像:
curl -o- https://raw.fastgit.org/nvm-sh/nvm/master/install.sh | bash 或者 wget -qO- https://raw.fastgit.org/nvm-sh/nvm/master/install.sh | bash
- linux或者mac安装,官方:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash 或者 wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- linux或者mac安装,镜像:
- 配置国内源
- 设置环境变量:NVM_NODEJS_ORG_MIRROR,bash编辑/.bashrc,zsh编辑/.zshrc
export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
- 安装
-
windows
镜像源:https://hub.fastgit.org/coreybutler/nvm-windows
官方推荐地址:https://github.com/coreybutler/nvm-windows
-
安装
-
配置国内源
- 设置
nvm node_mirror http://npm.taobao.org/mirrors/node nvm npm_mirror https://npm.taobao.org/mirrors/npm/
-
yarn
-
yarn 安装
- 需要首先安装nodejs
- 然后使用npm安装yarn或者更新
npm i -g yarn 或者 npm install -g yarn
-
配置国内源
yarn config set registry https://registry.npm.taobao.org
npm
- npm 默认安装nodejs后就已经有了,使用以下命令查看
npm -v
- npm更新,一下不适用于nvm安装的node
npm i -g npm
- 配置国内源,最简单的一种方式,自动配置淘宝源中多个配置
npm install -g mirror-config-china
jdk
- java jdk 安装
- 配置现在一般都不需要配置
maven
-
maven安装,apache比较良心,下载相关的基本都自带镜像 http://maven.apache.org/download.cgi
-
配置国内源
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>https://maven.aliyun.com/repository/public