1
npmmirror 中国镜像站
source link: https://npmmirror.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
npmmirror 中国镜像站
这是一个完整 npmjs.org
镜像,你可以用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽量与官方服务同步。
1,999,872个模块
25,408,270个模块版本
42,538,652次上周同日下载
125,804,067 次本日下载
609,459,025 次本周下载
2,806,053,518 次本月下载
123,281,796 次昨日下载
709,593,412 次上周下载
3,355,749,058 次上月下载
Version Badge
Default style is flat-square
.
Badge URL: https://npmmirror.com/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.npmmirror.com
或者你直接通过添加 npm
参数 alias
一个新命令:
alias cnpm="npm --registry=https://registry.npmmirror.com \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npmmirror.com/mirrors/node \
--userconfig=$HOME/.cnpmrc"
# Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npmmirror.com \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npmmirror.com/mirrors/node \
--userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
$ cnpm install [name]
直接通过 sync
命令马上同步一个模块, 只有 cnpm
命令行才有此功能:
$ cnpm sync express
当然, 你可以直接通过 web 方式来同步: /sync/express
$ open https://npmmirror.com/sync/express
支持 npm
除了 publish
之外的所有命令, 如:
$ cnpm info express
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK