composer报错:Script php artisan clear-compiled handling the pre-update-cmd event returned with error c


“laravel”的图片搜索结果


今天上传laravel的webapi到服务器,执行composer命令composer update时遇到:Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 1

找到的解决方法为:

composer update --no-scripts

composer dump-autoload -o

最后执行

composer update


共有 2 条评论

  1. avatar

    访客

    为什么我的不行

    1. avatar

      admin

      试着删除vendor目录和composer.json重新composer update

Top