'Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 macOs Monterey

Esto "solo me pasa cuando creo proyectos menores a 8" por ejemplo en 7

composer create-project laravel/laravel=^7.4 SantoCielos --prefer-dist

-> Arranca a crearlo bien ""PERO""

Creating a "laravel/laravel=^7.4" project at "./SantoCielos" Installing laravel/laravel (v7.30.1)

  • Installing laravel/laravel (v7.30.1): Extracting archive Created project in /Users/cuper/Desktop/php/SantoCielos

@php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information


Finalmente tira error Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source