无法将我的node.js应用程序推送到Heroku

时间:2014-06-14 21:14:11

标签: node.js heroku express

我似乎无法将我更新的存储库推送到Heroku。它以前工作过,现在应用程序在Heroku上运行,但我无法推送更新。

我尝试了npm更新,bower更新,重新安装Heroku-toolbelt,在另一个网络上推送,从heroku master拉出,并强制推送到heroku master,git pull --rebase,npm cache clean,bower缓存清理,卸载业力,更新heroku上的npm并清除heroku上的缓存。

我有多个Heroku帐户,我使用Heroku帐户管理(https://github.com/ddollar/heroku-accounts)以及多个git帐户,但我确保我使用的是正确的帐户。

以下是无法推送之前终端的最后几行:

3530 verbose rebuildBundles   'npmconf',
3530 verbose rebuildBundles   'rimraf',
3530 verbose rebuildBundles   'which' ]
3531 info install phantomjs@1.9.7-5
3532 verbose unsafe-perm in lifecycle true
3533 info phantomjs@1.9.7-5 Failed to exec install script
3534 error phantomjs@1.9.7-5 install: `node install.js`
3534 error Exit status 1
3535 error Failed at the phantomjs@1.9.7-5 install script.
3535 error This is most likely a problem with the phantomjs package,
3535 error not with npm itself.
3535 error Tell the author that this fails on your system:
33535 error     node install.js
3535 error You can get their info via:
3535 error     npm owner ls phantomjs
3535 error There is likely additional logging output above.
3536 error System Linux 3.8.11-ec2
3537 error command "/tmp/build_4600dbd4-687a-4b9c-bf9a-71e3baf5a1c4/vendor/node/bin/node" "/tmp/build_4600dbd4-687a-4b9c-bf9a-71e3baf5a1c4/vendor/node/bin/npm" "rebuild"
3538 error cwd /tmp/build_4600dbd4-687a-4b9c-bf9a-71e3baf5a1c4
3539 error node -v v0.10.29
3540 error npm -v 1.4.14
3541 error code ELIFECYCLE
3542 verbose exit [ 1, true ]

 !     Push rejected, failed to compile Node.js app

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

感谢任何帮助。谢谢!

1 个答案:

答案 0 :(得分:0)

我在StackOverflow上没有得到任何答案后,我在Heroku支持上发布了我的问题。 问题来自phantomjs,我从依赖项中删除它并将其移动到devDependencies。之后,我使用heroku-repo插件https://github.com/heroku/heroku-repo

清除了我的构建缓存

然后我可以再次推向Heroku

相关问题