建议cnodejs社区建一个npm的镜像

146 views
Skip to first unread message

老刀

unread,
Oct 25, 2011, 12:14:52 AM10/25/11
to cnodejs
国内访问npm的官方镜像太慢,经常无法安装模块,建议cnodejs社区建一个npm的镜像。
不然很多初学者会比较难以上手。

Zoom.Quiet

unread,
Oct 25, 2011, 12:28:41 AM10/25/11
to cno...@googlegroups.com
在 2011年10月25日 下午12:14,老刀 <kin...@gmail.com> 写道:
> 国内访问npm的官方镜像太慢,经常无法安装模块,建议cnodejs社区建一个npm的镜像。
> 不然很多初学者会比较难以上手。

再次附议!
国内有,但不是 cnodejs.org 的域名,残念...
发布 npm.cnodejs.org 吧!

--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/

老刀

unread,
Oct 25, 2011, 12:37:00 AM10/25/11
to cnodejs
国内是有一个:http://registry.npmjs.vitecho.com ,不过不稳定,现在不能用。

Tomas Huang (冠)

unread,
Oct 25, 2011, 1:13:22 AM10/25/11
to cno...@googlegroups.com
我用ssh上依然慢的不可接受,已经放弃了npm,手动的从github上下载源码。
--
Name: Tomas Huang(黄冠)
Nick: 青山老妖
Position: WEIMA SOFTWARE DESIGN CO.SHA Co-founder
Email: huanggua...@gmail.com
Sina Micro Bloghttp://t.sina.com.cn/showpower(青山老妖_黄冠)
Twitter: runawaygo
------
互联网创业者,理想主义者,敏捷实践,HTML5,软件工程师,非专业产品设计师

mahone

unread,
Oct 25, 2011, 1:22:08 AM10/25/11
to cnodejs
手动从github上下载源码,然后呢?需要编译么?还是直接放在node_module下就可以了?

On 10月25日, 下午1时13分, Tomas Huang (冠) <huangguan3112...@gmail.com>
wrote:


> 我用ssh上依然慢的不可接受,已经放弃了npm,手动的从github上下载源码。
>
> 在 2011年10月25日 下午12:37,老刀 <kin...@gmail.com>写道:
>
>
>
>
>
>
>
>
>
> > 国内是有一个:http://registry.npmjs.vitecho.com,不过不稳定,现在不能用。
>
> > On 10月25日, 下午12时28分, "Zoom.Quiet" <zoom.qu...@gmail.com> wrote:
> > > 在 2011年10月25日 下午12:14,老刀 <kin...@gmail.com> 写道:
>
> > > > 国内访问npm的官方镜像太慢,经常无法安装模块,建议cnodejs社区建一个npm的镜像。
> > > > 不然很多初学者会比较难以上手。
>
> > > 再次附议!
> > > 国内有,但不是 cnodejs.org 的域名,残念...
> > > 发布 npm.cnodejs.org 吧!
>
> > > --
> > > 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
> > > 俺:http://about.me/zoom.quiet
> > > 文字协议:http://creativecommons.org/licenses/by-sa/2.5/cn/
>
> --

> *Name*: Tomas Huang(黄冠)
> *Nick*: 青山老妖
> *Position*: WEIMA SOFTWARE DESIGN CO.SHA Co-founder
> *Email*: huangguan3112...@gmail.com
> *Sina Micro Blog*:http://t.sina.com.cn/showpower(青山老妖_黄冠)
> *Twitter*: runawaygo

MK2

unread,
Oct 25, 2011, 1:22:20 AM10/25/11
to cno...@googlegroups.com
其实大家可以直接试试 http://isaacs.iriscouch.com/registry/_design/app/_rewrite 这个做源。

之前尝试过按照 https://github.com/isaacs/npmjs.org 做镜像,但是发现同步很慢,同步了一天都感觉想卡死了,就放弃了。

目前我个人开发机上,基本都是手工装包了。或者开个vpn。。。

---------------------------------------------
MK2, FaWave, Net4Team
微博: @Python发烧友
Twitter: @fengmk2

Jackson Tian

unread,
Oct 25, 2011, 1:23:08 AM10/25/11
to cno...@googlegroups.com
js运行时候编译的。npm有编译功能么?

Yi Tan

unread,
Oct 25, 2011, 1:23:21 AM10/25/11
to cno...@googlegroups.com

同求

MK2

unread,
Oct 25, 2011, 1:28:32 AM10/25/11
to cno...@googlegroups.com
其实都是registry.npmjs.org 这个域名被强,要不做个registry.npmjs.org 的网络代理,是否可以解决此问题了?
毕竟镜像同步很慢,又有延迟。

c模块的话,将xxxx.node 模块copy到.node_modules 下就可以了。

Tomas Huang (冠)

unread,
Oct 25, 2011, 1:29:12 AM10/25/11
to cno...@googlegroups.com
npm可以帮助编译需要编译的模块的。

mahone

unread,
Oct 25, 2011, 1:29:11 AM10/25/11
to cnodejs
怎么手工装包?写篇文章讲下吧。。。

On 10月25日, 下午1时22分, MK2 <feng...@gmail.com> wrote:
> 其实大家可以直接试试http://isaacs.iriscouch.com/registry/_design/app/_rewrite这个做源。
>
> 之前尝试过按照https://github.com/isaacs/npmjs.org做镜像,但是发现同步很慢,同步了一天都感觉想卡死了,就放弃了。


>
> 目前我个人开发机上,基本都是手工装包了。或者开个vpn。。。
>
> 在 2011-10-25,下午1:13, Tomas Huang (冠) 写道:
>
>
>
>
>
>
>
>
>
> > 我用ssh上依然慢的不可接受,已经放弃了npm,手动的从github上下载源码。
>
> > 在 2011年10月25日 下午12:37,老刀 <kin...@gmail.com>写道:
> > 国内是有一个:http://registry.npmjs.vitecho.com,不过不稳定,现在不能用。
>
> > On 10月25日, 下午12时28分, "Zoom.Quiet" <zoom.qu...@gmail.com> wrote:
> > > 在 2011年10月25日 下午12:14,老刀 <kin...@gmail.com> 写道:
>
> > > > 国内访问npm的官方镜像太慢,经常无法安装模块,建议cnodejs社区建一个npm的镜像。
> > > > 不然很多初学者会比较难以上手。
>
> > > 再次附议!
> > > 国内有,但不是 cnodejs.org 的域名,残念...
> > > 发布 npm.cnodejs.org 吧!
>
> > > --
> > > 人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
> > > 俺:http://about.me/zoom.quiet
> > > 文字协议:http://creativecommons.org/licenses/by-sa/2.5/cn/
>
> > --
> > Name: Tomas Huang(黄冠)
> > Nick: 青山老妖
> > Position: WEIMA SOFTWARE DESIGN CO.SHA Co-founder

> > Email: huangguan3112...@gmail.com

Tomas Huang (冠)

unread,
Oct 25, 2011, 1:29:48 AM10/25/11
to cno...@googlegroups.com
放进去,手动编译需要编译的模块。
--
Name: Tomas Huang(黄冠)
Nick: 青山老妖
Position: WEIMA SOFTWARE DESIGN CO.SHA Co-founder
Email: huanggua...@gmail.com
Sina Micro Bloghttp://t.sina.com.cn/showpower(青山老妖_黄冠)
Twitter: runawaygo

老刀

unread,
Oct 25, 2011, 2:20:15 AM10/25/11
to cnodejs
http://registry.npmjs.vitecho.com/
这个已经可以用了,不知道是哪个仁兄建的,能联系上就好了。这个目前还不怎么稳定。

On 10月25日, 下午1时29分, Tomas Huang (冠) <huangguan3112...@gmail.com>
wrote:
> 放进去,手动编译需要编译的模块。

Senmiao Liu

unread,
Oct 25, 2011, 8:22:03 AM10/25/11
to cno...@googlegroups.com, kin...@gmail.com
这两天维护机器, 现在稳定了. 不过目前有20多个小时的延时, 估计明天就能跟上了.
大家有资源的多多镜像~~

MK2

unread,
Oct 25, 2011, 9:16:35 AM10/25/11
to cno...@googlegroups.com, kin...@gmail.com
wow,维护的同学出现了,非常感激!

goddyzhao

unread,
Oct 25, 2011, 10:33:56 AM10/25/11
to cnodejs
还是翻墙吧,这年头翻墙是王道!

jiyin yiyong

unread,
Oct 29, 2011, 1:27:30 AM10/29/11
to cno...@googlegroups.com
附议,, 初学者很难上手, 亲身体验,,

C.Monday

unread,
Oct 29, 2011, 3:13:03 AM10/29/11
to cnodejs
附议,之前还好,今天慢得令人发指……
另外为同样是新人的童鞋附上镜像使用方法:http://www.v2ex.com/t/15093

jiyin yiyong

unread,
Oct 30, 2011, 12:31:53 AM10/30/11
to cno...@googlegroups.com
昨天还感觉这个镜像不对.. 真是不稳定..
Ubuntu 的 nodejs 好像怎么都要出问题啊, npm search 一直错.. 只能试着编译了.
Reply all
Reply to author
Forward
0 new messages