Giter Site home page Giter Site logo

mirror-config-china's Introduction

mirror-config-china

NPM version Travis AppVeyor codecov David

为**内地的Node.js开发者准备的镜像配置,大大提高node模块安装速度。

特性

  • 支持Windows和其他操作系统
  • 自动配置各个node模块的安装源为淘宝镜像

安装

npm i -g mirror-config-china --registry=https://registry.npm.taobao.org
# 查看npm配置
npm config list
# 查看环境变量
source ~/.bashrc && env

参数

--registry=https://registry.npm.taobao.org

registry.npmjs.com 镜像URL

--bin-mirrors-prefix=https://npm.taobao.org/mirrors

npm.taobao.org/mirrors 镜像URL,会覆盖下文中的{bin-mirrors}

--apt-mirrors-prefix=https://mirrors.tuna.tsinghua.edu.cn

mirrors.tuna.tsinghua.edu.cn 镜像URL,会覆盖下文中的{apt-mirrors}

--ali-mirrors-prefix=https://mirrors.aliyun.com

mirrors.aliyun.com 镜像URL,会覆盖下文中的{ali-mirrors} 阿里云ECS VPC或经典网络用户请分别使用http://mirrors.cloud.aliyuncs.comhttp://mirrors.aliyuncs.com代替

--nodejs-org-mirror={bin-mirrors}/node (别名: --disturl)

nodejs.org/dist 镜像URL

--iojs-org-mirror={bin-mirrors}/iojs

iojs.org/dist 镜像URL

--nvmw-npm-mirror={bin-mirrors}/npm

github.com/npm/npm/releases 镜像URL

--apt-mirror={ali-mirrors}

Debian/Ubuntu APT镜像URL

--apt-gitlab-runner={apt-mirrors}/gitlab-runner/{release-id}

GitLab Runner APT镜像URL

--apt-docker-ce={ali-mirrors}/docker-ce/linux/{release-id}

Docker社区版 APT镜像URL

--apt-gitlab-ce={apt-mirrors}/gitlab-ce/{release-id}

GitLab社区版 APT镜像URL

--apt-virtualbox={apt-mirrors}/virtualbox/apt

VirtualBox APT镜像URL

--apt-nodesource={apt-mirrors}/nodesource/deb

NodeJS APT镜像URL前缀

其他

其他参数将被写入.npmrc文件中

安装成功后,针对以下组件的镜像URL,将被写入npm用户配置文件(~/.npmrc)中

为项目生成镜像配置文件

cd ~/my-project
mirror-config-china --registry=https://registry.npm.taobao.org

mirror-config-china's People

Contributors

gucong3000 avatar greenkeeper[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.