• Stars
    star
    475
  • Rank 92,465 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mirrors in China about node.js

mirror-config-china

NPM version Travis AppVeyor codecov David

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

特性

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

安装

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

参数

--registry=https://registry.npmmirror.com

registry.npmjs.com 镜像URL

--bin-mirrors-prefix=https://cdn.npmmirror.com/binaries

npmmirror.com/mirrors 镜像URL,会覆盖下文中的{bin-mirrors}

--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

其他

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

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

为项目生成镜像配置文件

cd ~/my-project
mirror-config-china --registry=https://registry.npmmirror.com

More Repositories

1

MiuiCleaner

MIUI 广告清理
JavaScript
168
star
2

CSS3.js

CSS3 polyfill
JavaScript
96
star
3

browser.js

最靠谱的浏览器嗅探方式
JavaScript
78
star
4

postcss-jsx

PostCSS syntax for parsing CSS in JS literals
JavaScript
76
star
5

postcss-html

PostCSS syntax for parsing HTML (and HTML-like)
JavaScript
59
star
6

safetree

学校安全教育平台自动答题工具
JavaScript
58
star
7

postcss-styled

PostCSS syntax for parsing styled components
JavaScript
55
star
8

postcss-syntax

Automatically switch PostCSS syntax based on file extensions
JavaScript
45
star
9

postcss-unprefix

Clean CSS vendor prefixes from your source.
JavaScript
34
star
10

h5form

HTML5 form polyfill
JavaScript
32
star
11

postcss-markdown

PostCSS Syntax for parsing Markdown
JavaScript
21
star
12

gulp-reporter

Error report for: CSSLint/EditorConfig/ESLint/HTMLHint/JSCS/JSHint/PostCSS/Standard/TSLint/XO
JavaScript
17
star
13

Sublime_Text_CN

Sublime Text 2/3 Chinese language pack
JavaScript
17
star
14

free_ss

free shadowsocks config sync
JavaScript
17
star
15

transform

css3 transform for ie
JavaScript
13
star
16

build-script

Gulp
JavaScript
13
star
17

FELS

Front End Live Stream
JavaScript
12
star
18

jquery.selectui

Modifying select appearance
JavaScript
9
star
19

in-gfw

Identify current location is located in mainland China.
JavaScript
8
star
20

browser_renderer

双内核浏览器内核切换控制技术
8
star
21

git-bash-shell

Use Git Bash as shell on windows
JavaScript
6
star
22

stylelint-config-wxss

微信小程序wxss文件stylelint配置
JavaScript
6
star
23

exec-extra

JavaScript
5
star
24

gulp-jscc

gulp plugin for jscc
JavaScript
5
star
25

postcss-pie

makes IE capable of rendering several of the most useful CSS3 decoration features.
JavaScript
5
star
26

lint-flow

Run linters against git files and don't let 💩 slip into your code base!
JavaScript
5
star
27

lQuery

最轻量级的js选择器
JavaScript
4
star
28

postcss-syntaxes

Automatically switch PostCSS syntax by file extensions
JavaScript
3
star
29

gucong3000.github.io

web
JavaScript
3
star
30

handbook

for Web Development Engineer
JavaScript
3
star
31

git-win

JavaScript
1
star
32

webkitcss

JavaScript
1
star
33

anyproxy-rule-mirror

anyproxy rule for redirect to mirrors in China
JavaScript
1
star
34

CSS3-Doraemon-Drawing-Animation

Drawing Doraemon with HTML+CSS3
CSS
1
star