I pulled a repo with a Laravel app and tried
composer update
but it exits with
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
I found the following and regenerated the .env file and the key:
It did not help anything. I also got the original .env file from the server which also did not help.
Any idea what the problem could be?