laravel Script php artisan clear-compiled handling the pre-update-cmd

 

更新composer 报错

Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255

Installation failed, reverting ./composer.json to its original content.

 

解决办法  :

首先找到对应的composer.json 

在找到对应的scripts  

修改下面这个

 "pre-install-cmd": [
            "php artisan clear-compiled"
        ],
          "post-install-cmd": [
            "php artisan optimize"
        ],

 

如图

laravel Script php artisan clear-compiled handling the pre-update-cmd_第1张图片

你可能感兴趣的:(bug)