zir
V2EX  ›  Node.js

npm 国内镜像 (nodejs包管理)

  •  
  •   zir · Jun 29, 2011 · 22255 views
    This topic created in 5606 days ago, the information mentioned may be changed or developed.
    镜像使用方法:

    1.通过config命令

    npm config set registry http://registry.npmjs.vitecho.com

    npm info underscore

    2.命令行指定

    npm --registry http://registry.npmjs.vitecho.com info underscore

    3.编辑 `~/.npmrc` 加入下面内容

    registry = http://registry.npmjs.vitecho.com




    如果设置正确, 包信息的 `dist.tarball` 会以该镜像开头

    搜索镜像: http://search.npmjs.vitecho.com

    --------------

    npm项目地址: http://npmjs.org

    建立或使用镜像,参考: https://github.com/isaacs/npmjs.org
    19 replies  •  2014-07-02 00:57:40 +08:00
    27493586
    27493586
    Jul 9, 2011
    1
    镜像美,正好我上不去npmjs,原来还有这招,多谢lz!昨晚烦恼了一个晚上,现在终于能用了!
    zir
    zir
    OP
    Jul 28, 2011
    2
    前两天同步断了一次 现在好了 couchdb...
    willwen
    willwen
    Aug 2, 2011
    3
    我的几个包也同步的不错哦
    zir
    zir
    OP
    Aug 10, 2011❤️1
    4
    webjs吗?
    rikugun
    rikugun
    Aug 10, 2011
    5
    镜像美,同谢 楼主哦
    zir
    zir
    OP
    Aug 17, 2011
    6
    ;)
    rankjie
    rankjie
    Aug 17, 2011
    7
    mark。
    謝謝LZ
    jiyinyiyong
    jiyinyiyong
    Oct 30, 2011
    8
    实在是好东西, 新手在此谢过楼主..
    jiyinyiyong
    jiyinyiyong
    Jan 20, 2012
    9
    瞄的, 发现镜像速度慢, 又搜了一遍, 标记下
    http://www.cnblogs.com/fengmk2/archive/2011/11/16/2251374.html
    $ npm config set registry "http://npm.hacknodejs.com/"
    290601953
    290601953
    Apr 24, 2012
    10
    mark~
    meteor
    meteor
    Sep 10, 2012
    11
    服务器地址是202.85.222.4。Ping值挺低的。不错。

    meteor@Meteor:~$ ping registry.npmjs.vitecho.com
    PING registry.npmjs.vitecho.com (202.85.222.4) 56(84) bytes of data.
    64 bytes from 202.85.222.4: icmp_req=1 ttl=54 time=30.2 ms
    64 bytes from 202.85.222.4: icmp_req=2 ttl=54 time=30.1 ms
    ^C64 bytes from 202.85.222.4: icmp_req=3 ttl=54 time=30.0 ms

    --- registry.npmjs.vitecho.com ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 12322ms
    rtt min/avg/max/mdev = 30.019/30.136/30.235/0.089 ms
    shaoshuai0102
    shaoshuai0102
    Sep 24, 2012
    12
    @zir hi,镜像挂了,可以修复下吗 亲
    shaoshuai0102
    shaoshuai0102
    Sep 24, 2012
    13
    @zir 貌似恢复了
    meteor
    meteor
    Sep 28, 2012
    14
    @shaoshuai0102 今天好像又挂了.
    502 Bad Gateway

    lj6684
    lj6684
    Sep 29, 2012
    15
    mark备用
    zir
    zir
    OP
    Dec 29, 2012
    16
    @meteor 运营商说是多线BGP 全国一般50以内
    zir
    zir
    OP
    Dec 29, 2012
    17
    最近应该会稳定些,前阵子一直在调整。
    web界面的search就不要用啦,couchdb根本不返回。。。
    cli的还是可以的
    fengmk2
    fengmk2
    Jun 26, 2014
    18
    已经挂了, 使用 http://npm.taobao.org 吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1320 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 20:38 · PVG 04:38 · LAX 12:38 · JFK 15:38
    ♥ Do have faith in what you're doing.