My composer won't update completely with Laravel 4 it gets stuck with artisan

前端 未结 6 979
无人共我
无人共我 2020-12-31 06:00

Here is the error I am getting:

Script php artisan optimize handling the post-update-cmd event returned with an error

[RuntimeException]  
Error Output:

up         


        
6条回答
  •  甜味超标
    2020-12-31 06:30

    Okay, did some further research with Google and it seems that this has to do with the autoload caching from Composer. There are various ways on how you can solve this.

    composer dump-autoload
    

    This would re-create the autoload stuff for you and it should solve your problem for now.

    If this doesn't help, try deleting everything and re-install fresh: [ref]

    rm -rf /path/to/composer.lock /path/to/vendor/
    composer install
    

    This would re-create just about everything.

提交回复
热议问题