这是一个完整 npmjs.org
镜像,你能够用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽可能与官方服务同步。html
452,891 | 个模块 | 2,949,694 | 个模块版本 | 11 | 次删除 |
1,969,727 | 次本日下载 | 21,393,338 | 次本周下载 | 75,795,530 | 次本月下载 |
2,616,460 | 次昨日下载 | 22,403,053 | 次上周下载 | 65,529,439 | 次上月下载 |
This registry will sync all packages from official registry.node
上次同步完成时间: Sun Mar 26 2017 23:14:50 GMT+0800 (CST)webpack
共 47 个模块须要同步 | 已完成 100% | |
已同步完成了 47 个模块 | 其中 0 个模块同步失败 | 最近同步成功的模块是: browsersync-webpack-plugin |
Default style is flat-square
.git
Badge URL: https://npm.taobao.org/badge/v/cnpmjs.org.svg
github
<0.1.0 & >=0.0.0
: <1.0.0 & >=0.1.0
: >=1.0.0
: 你能够使用咱们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm
:web
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
或者你直接经过添加 npm
参数 alias
一个新命令:chrome
alias cnpm="npm --registry=https://registry.npm.taobao.org \ --cache=$HOME/.npm/.cache/cnpm \ --disturl=https://npm.taobao.org/dist \ --userconfig=$HOME/.cnpmrc" # Or alias it in .bashrc or .zshrc $ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \ --cache=$HOME/.npm/.cache/cnpm \ --disturl=https://npm.taobao.org/dist \ --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
从 registry.npm.taobao.org 安装全部模块. 当安装的时候发现安装的模块尚未同步过来, 淘宝 NPM 会自动在后台进行同步, 而且会让你从官方 NPM registry.npmjs.org 进行安装. 下次你再安装这个模块的时候, 就会直接从 淘宝 NPM 安装了.npm
$ cnpm install [name]
直接经过 sync
命令立刻同步一个模块, 只有 cnpm
命令行才有此功能:api
$ cnpm sync connect
固然, 你能够直接经过 web 方式来同步: /sync/connectbash
$ open https://npm.taobao.org/sync/connect
支持 npm
除了 publish
以外的全部命令, 如:
$ cnpm info connect