New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现 cnmjs.orf@1.3.0 版本显示已经全部同步完成,可是模块数与官方服务还相差一万多呢 #424

Closed
bugyak opened this Issue Aug 17, 2014 · 14 comments

Comments

Projects
None yet
3 participants
@bugyak

bugyak commented Aug 17, 2014

怎么解决啊。

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

select distinct(name) as name from tag order by name 可以查出来所有已有的模块,http://r.cnpmjs.org/-/short 这个接口可以查到所有 r.cnpmjs.org 上面的模块。

可以比对一下。不过我觉得可以不管少的这些模块,用到了再 sync 同步就好了。

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

考虑再写一个脚本来同步所有的未同步到的模块。

@dead-horse dead-horse self-assigned this Aug 17, 2014

@bugyak

This comment has been minimized.

bugyak commented Aug 17, 2014

查询到有一万多相差,怎么手动同步...

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

用到再同步就好了,好多模块其实根本用不到

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

或者你等我之后写个脚本来同步

@bugyak

This comment has been minimized.

bugyak commented Aug 17, 2014

其实我这边的情况是这样的,教育网内网络情况有点特殊,网内速度很快,但是教育网连国外速度不行,所以我这是想搭建一个完整的镜像,就是在任何时候最好都是与官方同步的,不能延误太多。

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

感觉少的这些模块其实可能是同步的时候由于网络问题没有同步过来的,我的意思是当你用到发现缺少这个模块的时候,可以手动同步一下(网页上点同步,或者 cnpm 的客户端 sync 命令)。

或者你等我这几天写个同步不存在的模块的脚本。

@bugyak

This comment has been minimized.

bugyak commented Aug 17, 2014

因为我是开放给教育网内其他大学的用户使用的,如果他们在安装模块的时候从我这,模块不存在,他们那边就会提示安装失败吧?我是想有什么办法能够做到同步完整的一个库。

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 17, 2014

或者你等我这几天写个同步不存在的模块的脚本。

@bugyak

This comment has been minimized.

bugyak commented Aug 17, 2014

嗯,那就等这个脚本吧。

@fengmk2

This comment has been minimized.

Member

fengmk2 commented Aug 17, 2014

替广大教育网用户感谢你,能提供你的教育网镜像地址吗?我们帮你传播一下。
2014-8-17 下午3:47于 "bugyak" notifications@github.com写道:

嗯,那就等这个脚本吧。


Reply to this email directly or view it on GitHub
#424 (comment).

@dead-horse

This comment has been minimized.

Member

dead-horse commented Aug 18, 2014

@bugyak cnpmjs.org@1.3.2

var config = require('./your_config)';
var sync = require('cnpmjs.org/tools/sync_not_exist');

sync(config, function (err) {
  console.error(err.stack);
});
@bugyak

This comment has been minimized.

bugyak commented Aug 18, 2014

@fengmk2

This comment has been minimized.

Member

fengmk2 commented Aug 18, 2014

域名略屌
2014-8-18 下午3:50于 "bugyak" notifications@github.com写道:

@fengmk2 https://github.com/fengmk2 http://enpmjs.org/


Reply to this email directly or view it on GitHub
#424 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment