When I run the Laravel project via php artisan serve I get an error about /vendor/autoload.php as no such file or directiory in /artisan. Then after I did couple of research I found that composer does not exist. Hence, I tried to update composer via composer update I get an error about the memory limit as such:
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/Cellar/composer/1.10.7/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
And then I try to increase the memory to make the memory infinite with the command php -d memory_limit=-1 but then, terminal is not giving me a response. I cloned the project through git and there is no .env file in my project. How can I solve the problem?
When I run composer install I get the errors below.
Problem 1 - Installation request for laravel/horizon v4.3.3 -> satisfiable by laravel/horizon[v4.3.3]. - laravel/horizon v4.3.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
Problem 2 - Installation request for phpoffice/phpspreadsheet 1.13.0 -> satisfiable by phpoffice/phpspreadsheet[1.13.0]. - phpoffice/phpspreadsheet 1.13.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
Problem 3 - phpoffice/phpspreadsheet 1.13.0 requires ext-zip * -> the requested PHP extension zip is missing from your system. - maatwebsite/excel 3.1.19 requires phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.13.0]. - Installation request for maatwebsite/excel 3.1.19 -> satisfiable by maatwebsite/excel[3.1.19].