<legend id='rewS3'><style id='rewS3'><dir id='rewS3'><q id='rewS3'></q></dir></style></legend>

    <small id='rewS3'></small><noframes id='rewS3'>

    • <bdo id='rewS3'></bdo><ul id='rewS3'></ul>
    <tfoot id='rewS3'></tfoot>

    <i id='rewS3'><tr id='rewS3'><dt id='rewS3'><q id='rewS3'><span id='rewS3'><b id='rewS3'><form id='rewS3'><ins id='rewS3'></ins><ul id='rewS3'></ul><sub id='rewS3'></sub></form><legend id='rewS3'></legend><bdo id='rewS3'><pre id='rewS3'><center id='rewS3'></center></pre></bdo></b><th id='rewS3'></th></span></q></dt></tr></i><div id='rewS3'><tfoot id='rewS3'></tfoot><dl id='rewS3'><fieldset id='rewS3'></fieldset></dl></div>

      Heroku 部署失败:[远程拒绝] master ->主(预接收钩拒绝):错误:未能推送一些参考

      Heroku deploy failed: [remote rejected] master -gt; master (pre-receive hook declined): error: failed to push some refs(Heroku 部署失败:[远程拒绝] master -主(预接收钩拒绝):错误:未能推送一些参考)

        <tbody id='EvpMP'></tbody>

      <small id='EvpMP'></small><noframes id='EvpMP'>

          <bdo id='EvpMP'></bdo><ul id='EvpMP'></ul>

            <i id='EvpMP'><tr id='EvpMP'><dt id='EvpMP'><q id='EvpMP'><span id='EvpMP'><b id='EvpMP'><form id='EvpMP'><ins id='EvpMP'></ins><ul id='EvpMP'></ul><sub id='EvpMP'></sub></form><legend id='EvpMP'></legend><bdo id='EvpMP'><pre id='EvpMP'><center id='EvpMP'></center></pre></bdo></b><th id='EvpMP'></th></span></q></dt></tr></i><div id='EvpMP'><tfoot id='EvpMP'></tfoot><dl id='EvpMP'><fieldset id='EvpMP'></fieldset></dl></div>
            • <tfoot id='EvpMP'></tfoot>
            • <legend id='EvpMP'><style id='EvpMP'><dir id='EvpMP'><q id='EvpMP'></q></dir></style></legend>
                本文介绍了Heroku 部署失败:[远程拒绝] master ->主(预接收钩拒绝):错误:未能推送一些参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我将现有应用复制到新存储库中.它在本地工作.为原始部署工作.我正在使用 PHP、Yii 和 Composer.我不知道 fxp/composer-asset-plugin 是什么.

                I copied an existing app into a new repository. It works locally. Deploys work for the original. I'm using PHP, Yii, and Composer. I don't know what fxp/composer-asset-plugin is.

                C:UsersChloeworkspaceaffiliorama>git push heroku master
                Counting objects: 699, done.
                Delta compression using up to 8 threads.
                Compressing objects: 100% (655/655), done.
                Writing objects: 100% (699/699), 25.36 MiB | 142.00 KiB/s, done.
                Total 699 (delta 146), reused 0 (delta 0)
                remote: Compressing source files... done.
                remote: Building source:
                remote:
                remote: -----> PHP app detected
                remote: -----> Bootstrapping...
                remote: -----> Installing platform packages...
                remote:        - php (5.6.20)
                remote:        - ext-gd (bundled with php)
                remote:        - ext-mbstring (bundled with php)
                remote:        - ext-soap (bundled with php)
                remote:        - nginx (1.8.1)
                remote:        - apache (2.4.20)
                remote: -----> Installing dependencies...
                remote:        Composer version 1.0.0 2016-04-05 13:27:25
                remote:        Loading composer repositories with package information
                remote:        Installing dependencies from lock file
                remote:          - Installing fxp/composer-asset-plugin (v1.1.2)
                remote:            Downloading: 100%
                remote:
                remote:        Plugin installation failed, rolling back
                remote:          - Removing fxp/composer-asset-plugin (v1.1.2)
                remote:
                remote:
                
                remote:          [ReflectionException]
                
                remote:          Class FxpComposerAssetPluginRepositoryNpmRepository does not exist
                remote:
                remote:
                remote:          [ErrorException]
                
                remote:          Declaration of FxpComposerAssetPluginRepositoryAbstractAssetsRepository::whatProvides() should be compatible with ComposerRepositoryComposerRepository::whatProvides(ComposerDependencyResolverPool $pool, $name, $bypassFilters = false)
                remote:
                remote:
                remote:        install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
                remote:
                remote:
                remote:  !     Push rejected, failed to compile PHP app
                remote:
                remote: Verifying deploy...
                remote:
                remote: !       Push rejected to affiliorama.
                remote:
                To https://git.heroku.com/affiliorama.git
                 ! [remote rejected] master -> master (pre-receive hook declined)
                error: failed to push some refs to 'https://git.heroku.com/affiliorama.git'
                

                如果它很重要,这在我的 composer.json

                This is in my composer.json if it's important

                "require": {
                    "fxp/composer-asset-plugin": "^1.0",
                

                推荐答案

                我不得不跑

                composer global require fxp/composer-asset-plugin --no-plugins
                

                然后 composer update,然后提交,然后推送.过了那部分.

                then composer update, then commit, then push. It got past that part.

                remote:          - Installing fxp/composer-asset-plugin (v1.1.3)
                remote:            Downloading: 100%
                

                <小时>

                它又坏了,我不得不删除vendor/composer.lock.您可以使用 composer global remove "fxp/composer-asset-plugin" 删除全局插件.有人还说你可以使用rm -r ~/.composer.它在此期间给出了不同的错误.出于某种原因,即使您在 composer.jsonrequire 部分中有 "fxp/composer-asset-plugin": "*",>,它只是不加载它.所以我不得不再次运行global require"来全局安装那个神秘包,然后我可以运行 composer install 来让所有东西都新鲜,并且它起作用了.


                It broke again and I had to delete vendor/ and composer.lock. You can remove the global plugin with composer global remove "fxp/composer-asset-plugin". Someone also said you can use rm -r ~/.composer. It was giving a different error in the interim. For some reason, even if you have "fxp/composer-asset-plugin": "*", in your require section of composer.json, it just doesn't load it. So I had to run 'global require' again to install that mystery package globally, and then I could run composer install to get everything fresh, and it worked.

                这篇关于Heroku 部署失败:[远程拒绝] master ->主(预接收钩拒绝):错误:未能推送一些参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)
                <i id='RZFdC'><tr id='RZFdC'><dt id='RZFdC'><q id='RZFdC'><span id='RZFdC'><b id='RZFdC'><form id='RZFdC'><ins id='RZFdC'></ins><ul id='RZFdC'></ul><sub id='RZFdC'></sub></form><legend id='RZFdC'></legend><bdo id='RZFdC'><pre id='RZFdC'><center id='RZFdC'></center></pre></bdo></b><th id='RZFdC'></th></span></q></dt></tr></i><div id='RZFdC'><tfoot id='RZFdC'></tfoot><dl id='RZFdC'><fieldset id='RZFdC'></fieldset></dl></div>
                      <bdo id='RZFdC'></bdo><ul id='RZFdC'></ul>

                      <small id='RZFdC'></small><noframes id='RZFdC'>

                    • <legend id='RZFdC'><style id='RZFdC'><dir id='RZFdC'><q id='RZFdC'></q></dir></style></legend>
                      <tfoot id='RZFdC'></tfoot>

                        <tbody id='RZFdC'></tbody>