V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zir
V2EX  ›  Node.js

npm 国内镜像 (nodejs包管理)

  •  
  •   zir · 2011-06-29 13:17:23 +08:00 · 20312 次点击
    这是一个创建于 4679 天前的主题,其中的信息可能已经有所发展或是发生改变。
    镜像使用方法:

    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 条回复    2014-07-02 00:57:40 +08:00
    27493586
        1
    27493586  
       2011-07-09 10:41:27 +08:00
    镜像美,正好我上不去npmjs,原来还有这招,多谢lz!昨晚烦恼了一个晚上,现在终于能用了!
    zir
        2
    zir  
    OP
       2011-07-28 12:57:32 +08:00
    前两天同步断了一次 现在好了 couchdb...
    willwen
        3
    willwen  
       2011-08-02 23:41:42 +08:00
    我的几个包也同步的不错哦
    zir
        4
    zir  
    OP
       2011-08-10 16:01:14 +08:00   ❤️ 1
    webjs吗?
    rikugun
        5
    rikugun  
       2011-08-10 16:55:37 +08:00
    镜像美,同谢 楼主哦
    zir
        6
    zir  
    OP
       2011-08-17 22:57:18 +08:00
    ;)
    rankjie
        7
    rankjie  
       2011-08-17 23:00:53 +08:00
    mark。
    謝謝LZ
    jiyinyiyong
        8
    jiyinyiyong  
       2011-10-30 14:08:21 +08:00
    实在是好东西, 新手在此谢过楼主..
    jiyinyiyong
        9
    jiyinyiyong  
       2012-01-20 14:56:03 +08:00
    瞄的, 发现镜像速度慢, 又搜了一遍, 标记下
    http://www.cnblogs.com/fengmk2/archive/2011/11/16/2251374.html
    $ npm config set registry "http://npm.hacknodejs.com/"
    290601953
        10
    290601953  
       2012-04-24 11:04:11 +08:00
    mark~
    meteor
        11
    meteor  
       2012-09-10 22:20:13 +08:00
    服务器地址是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
        12
    shaoshuai0102  
       2012-09-24 21:46:40 +08:00
    @zir hi,镜像挂了,可以修复下吗 亲
    shaoshuai0102
        13
    shaoshuai0102  
       2012-09-24 21:57:05 +08:00
    @zir 貌似恢复了
    meteor
        14
    meteor  
       2012-09-28 10:25:58 +08:00
    @shaoshuai0102 今天好像又挂了.
    502 Bad Gateway

    lj6684
        15
    lj6684  
       2012-09-29 14:09:12 +08:00
    mark备用
    zir
        16
    zir  
    OP
       2012-12-29 17:39:13 +08:00
    @meteor 运营商说是多线BGP 全国一般50以内
    zir
        17
    zir  
    OP
       2012-12-29 17:41:29 +08:00
    最近应该会稳定些,前阵子一直在调整。
    web界面的search就不要用啦,couchdb根本不返回。。。
    cli的还是可以的
    fengmk2
        18
    fengmk2  
       2014-06-26 14:26:07 +08:00
    已经挂了, 使用 http://npm.taobao.org
    fengmk2
        19
    fengmk2  
       2014-07-02 00:57:40 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2863 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:29 · PVG 15:29 · LAX 00:29 · JFK 03:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.