2013-10-19 149 views
4

這裏的日誌:Heroku的推送失敗

$ git push heroku master 
Counting objects: 79, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (76/76), done. 
Writing objects: 100% (79/79), 228.60 KiB | 374.00 KiB/s, done. 
Total 79 (delta 20), reused 0 (delta 0) 

-----> Node.js app detected 
-----> Resolving engine versions 
     Using Node.js version: 0.10.21 
     Using npm version: 1.2.30 
-----> Fetching Node.js binaries 

gzip: stdin: unexpected end of file 
tar: Child returned status 1 
tar: Exiting with failure status due to previous errors 

!  Push rejected, failed to compile Node.js app 

To [email protected]:some-heroku-app.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:some-heroku-app.git' 

我已經看了這個錯誤,但沒有其他人的推動似乎在相當相同的地方煤礦退出。更重要的是,它開始非常隨機,我已經推動到今天的這個應用程序。我做的都是一樣的,這就是發生的事情。這是怎麼回事?

+0

我遇到同樣的問題 –

+0

認爲它與NPM有關? –

+0

我剛剛從heroku獲取新聞以升級node.js之後得到相同的... –

回答

4

相同...通過明確要求"node": "0.10.20"暫時固定...我認爲這將很快得到解決。

+0

謝謝,效果很好。 –

0

如果fat的答案不適合你,請嘗試將其添加到package.json文件的依賴項對象中。

"node": "latest"