Heroku deploy failed: [remote rejected] master -> master (pre-receive hook declined): error: failed to push some refs

后端 未结 1 1152
耶瑟儿~
耶瑟儿~ 2021-01-16 02:56

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-ass

相关标签:
1条回答
  • 2021-01-16 03:10

    I had to run

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

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

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

    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.

    0 讨论(0)
提交回复
热议问题