惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Scott Helme
Scott Helme
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
S
Securelist
Help Net Security
Help Net Security
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
D
Docker
Simon Willison's Weblog
Simon Willison's Weblog
Microsoft Azure Blog
Microsoft Azure Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
I
Intezer
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
C
Cisco Blogs
有赞技术团队
有赞技术团队
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
Know Your Adversary
Know Your Adversary
C
CERT Recently Published Vulnerability Notes
Y
Y Combinator Blog
S
SegmentFault 最新的问题
G
GRAHAM CLULEY
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LINUX DO - 热门话题
K
Kaspersky official blog
P
Proofpoint News Feed
P
Palo Alto Networks Blog
Cyberwarzone
Cyberwarzone
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
GbyAI
GbyAI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tor Project blog
NISL@THU
NISL@THU
L
LangChain Blog
B
Blog
aimingoo的专栏
aimingoo的专栏
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cisco Talos Blog
Cisco Talos Blog
雷峰网
雷峰网
The Cloudflare Blog
宝玉的分享
宝玉的分享
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - MK2

cnpmcore 超大 JSON parse 性能优化 基于 Postgres 实现一个 Job Queue Graceful exit with cluster and pm Use Blanket.js instead of jscover 使用 connect-domain 捕获异步调用中出现的异常 Defense hash algorithm collision 防御hash算法冲突导致拒绝服务器 fibonacci(40) benchmark [nodejs]保证你的程序死了还能复活:forever and forever webui [nodejs]Buffer vs String Nodejs "Hello world" benchmark NodeBlog v0.2.0 更新说明 关于__proto__的链式记忆 NAE支持自定义域名了 Nodejs 离线文档下载 nodejs读写大文件 Nodejs HTTP请求的超时处理(Nodejs HTTP Client Request Timeout Handle) 在jQuery 1.5+ 的jqXHR上监听文件上传进度(xhr.upload) 关于Nodejs中Buffer释放的二三事 nodejs web开发入门: Simple-TODO Nodejs 实现版
npm 资源库镜像
MK2 · 2011-11-16 · via 博客园 - MK2

使用方法

@mashihua 同学在cnode新闻组发布了他维护的npm镜像源,速度很快!

以下是邮件内容:

很高兴的通知大家。在周末的空闲时间里,我们搭建了一个镜像的npm资源库,服务器在日本的Linode上。大家可用下面的命令来安装npm的模块:

$ npm --registry "http://npm.hacknodejs.com/" install express

或下面的命令:

$ env npm_config_registry="http://npm.hacknodejs.com/" npm install express 

如果你想把它设成默认的资源库,可用下面的命令:

$ npm config set registry "http://npm.hacknodejs.com/"

欢迎反馈,感谢大家的支持。

PS: 还有一个资源镜像 http://registry.npmjs.vitecho.com,由 Senmiao 同学维护。

自己动手搭建一个

@mashihua 同学还分享了搭建经验:

大家可以查看 https://github.com/isaacs/npmjs.org 如何安装 npm 资源库。安装比较简单,最大的问题在于 couchdb 上。如果得到这样的错误:

Error: insecure_rewrite_rule too many ../.. segments: registry/design/app/rewrite/

请配置 /usr/local/etc/couchdb/local.ini 里 httpd 的选项 secure_rewrites = false

当design文档和replication在同一个库时需要认证。可对registry这个资源采用用户名和密码认证的方式,http://user:pwd@localhost/registry 。因为可能碰到replication时,会返回401错误。

可参考:http://guide.couchdb.org/draft/replication.htmlhttps://github.com/isaacs/npmjs.org/issues/19