我似乎无法将更新后的存储库推送到Heroku。它以前可以正常运行,并且该应用程序现在可以在Heroku上运行,但是我无法将更新推送到它。
我尝试过npm update,bower更新,重新安装Heroku-toolbelt,在其他网络上推送时,从heroku master中拉出并强制推送到heroku master,git pull --rebase,npm cache clean,bower cache clean,卸载业力,更新heroku上的npm并清理heroku上的缓存。
我有多个用Heroku帐户(https://github.com/ddollar/heroku-accounts)管理的Heroku帐户,以及多个git帐户,但我确定自己使用的帐户正确。
这是终端无法推送之前的最后几行:
3530 verbose rebuildBundles 'npmconf',
3530 verbose rebuildBundles 'rimraf',
3530 verbose rebuildBundles 'which' ]
3531 info install [email protected]
3532 verbose unsafe-perm in lifecycle true
3533 info [email protected] Failed to exec install script
3534 error [email protected] install: `node install.js`
3534 error Exit status 1
3535 error Failed at the [email protected] 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 [email protected]:myapp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myapp.git'
任何帮助表示赞赏。谢谢!
在StackOverflow上没有得到任何答案之后,我在Heroku支持上发布了我的问题。问题来自phantomjs,我从依赖项中删除了它并将其移至devDependencies。之后,我使用heroku-repo插件https://github.com/heroku/heroku-repo清除了构建缓存
然后我可以再次推到Heroku
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句