如何使用 淘宝 NPM 镜像
2016-06-20 09:25
603 查看
淘宝 NPM 镜像
原文链接 http://npm.taobao.org/这是一个完整 npmjs.org
镜像,你可以用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽量与官方服务同步。
当前 registry.npm.taobao.org 是从 r.cnpmjs.org 进行全量同步的.当前 npm.taobao.org 运行版本是: cnpmjs.org@
本系统运行在 Node.js@ 上.
开源镜像: http://npm.taobao.org/mirrors
Node.js 镜像: http://npm.taobao.org/mirrors/node
alinode 镜像: http://npm.taobao.org/mirrors/alinode
phantomjs 镜像: http://npm.taobao.org/mirrors/phantomjs
ChromeDriver 镜像: http://npm.taobao.org/mirrors/chromedriver
OperaDriver 镜像: http://npm.taobao.org/mirrors/operadriver
Selenium 镜像: http://npm.taobao.org/mirrors/selenium
Node.js 文档镜像: http://npm.taobao.org/mirrors/node/latest/docs/api/index.html
NPM 镜像: https://npm.taobao.org/mirrors/npm/
electron 镜像: https://npm.taobao.org/mirrors/electron/
node-inspector 镜像: https://npm.taobao.org/mirrors/node-inspector/
个模块 | 个模块版本 | 次删除 | |||
次本日下载 | 次本周下载 | 次本月下载 | |||
次昨日下载 | 次上周下载 | 次上月下载 |
Version Badge
Default style isflat-square.
Badge URL:
https://npm.taobao.org/badge/v/cnpmjs.org.svg
<0.1.0 & >=0.0.0:
<1.0.0 & >=0.1.0:
>=1.0.0:
使用说明
你可以使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的npm:
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
或者你直接通过添加
npm参数
alias一个新命令:
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 会自动在后台进行同步, 并且会让你从官方 NPMregistry.npmjs.org 进行安装. 下次你再安装这个模块的时候, 就会直接从 淘宝 NPM 安装了.$ cnpm install [name]
同步模块
直接通过sync命令马上同步一个模块, 只有
cnpm命令行才有此功能:
$ cnpm sync connect
当然, 你可以直接通过 web 方式来同步: /sync/connect
$ open https://npm.taobao.org/sync/connect[/code]其它命令
支持npm除了publish之外的所有命令, 如:$ cnpm info connect
相关文章推荐
- tkinter 利器--------pmw模块,里面有很多造好的轮子,有详细的demo
- [转载]WTL下重绘PopMenu再次做笔记
- npm
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- 关于IPMI的几个问题
- 我的npm笔记
- jBPM4.4 maven-dependencies
- RPM软件包安装与卸载
- I2C(smbus、pmbus)和SPI协议分析
- 基于pix硬件的apm开发环境搭建
- 软件包管理:rpm
- P6 EPPM 安装和配置指南
- npm 学习
- PM2 使用介绍
- 4、mount,rpm,yum,yum组讲解
- IT产品经理的工作职责
- npm vs Bower区别
- Windows平台下利用APM来做负载均衡方案 - 负载均衡(下)
- NPM安装之后CMD中不能使用
- 飞控信号SBUS信号解析为PWM信号输出