2014-02-10 100 views
1

安装delayed-stream时,在编译heroku节点buildpack期间,我总是收到超时。大约1分钟后,它会到达这部分,然后挂起直到15分钟超时。有没有其他人看到这个问题?将节点应用程序部署到heroku的超时

npm http GET https://registry.npmjs.org/delayed-stream/0.0.5 
     npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25","npm":"1.3.24"}) 
     npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25","npm":"1.3.24"}) 
     npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25","npm":"1.3.24"}) 
     npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25","npm":"1.3.24"}) 
     npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5 
     npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz 
     npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz 


!  Timed out compiling Node.js app (15 minutes) 
!  See https://devcenter.heroku.com/articles/slug-compiler#time-limit 
+0

尝试npm缓存清理,然后再次运行 – dewd

回答

2

第三级依赖项包括git中没有https的模块。

您可以运行npm ls以获取所有模块的完全依赖关系图。要找到使用http代替https的坏代码,可以使用npm ls | grep http://

+0

我现在有这个问题。不幸的是,我不明白你的答案。你是如何解决这个问题的? – dewd

+0

我发现了包含在http中的嵌套依赖项(来自git)。我必须将树中的每个父代依赖关系分解为不良依赖,并更改为依赖于我的分支。例如。回购看起来像myPackage - >祖父母 - >父母 - >坏的http dep。创建叉子父母和祖父母。更新了parentFork以包含带有https和grandparentFork的dep以指向parentFork而不是父级。然后更新我的package.json以指向grandparentFork。现在我的代理看起来像myPackage - > grandparentFork - > parentFork - > https dep –

+0

请注意,您应该向父级请求完整请求以修复不良依赖。如果它被合并并发布到npm,你将不需要你的叉子。 –

相关问题