2014-02-10 99 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,你將不需要你的叉子。 –

相關問題