Error:Composer Out of memory in Laravel?

0 votes

By use of Windows, Xampp and php 32-bit version and cloned a laravel Project and it is giving the following error when I run Composer update.

"Out of memory (allocated 1585446912) (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220 "

What I have done is

  1. To increase memory size of php.ini to -1
  2. Tried to download php 64 bit and run the following command
"C:\Users\Niroj Dev\Documents\php-7.4.4\php.exe" -d memory_limit=-1 "C:/ProgramData/ComposerSetup/bin/composer.phar" update

The above two way is unsuccessfull

Can someone help me out.? please!

Thank you.

Mar 30 in Laravel by kartik
• 11,290 points
302 views

1 answer to this question.

0 votes

Hey @kartik,

This Error  happens in almost all framework like Magento, Laraval etc. You just need to increase the memory allocation limit in php by php.ini file.

You can do the above task.

Update your php.ini file then restart Apache or your server
example:
memory_limit=128M
to
memory_limit=1128M

Hope this works!

thank you!!

answered Mar 30 by Niroj
• 22,790 points

Related Questions In Laravel

0 votes
1 answer

What is the use of Facade Pattern in Laravel?

Hey kartik, Facades provide a static interface to classes that are ...READ MORE

answered Mar 19 in Laravel by Niroj
• 22,790 points
47 views
0 votes
1 answer

What is the use of the Eloquent cursor() method in Laravel?

Hello, The cursor method allows us to iterate ...READ MORE

answered Mar 20 in Laravel by Niroj
• 22,790 points
109 views
0 votes
1 answer

What is yield in Laravel and what is the use of yield?

Hii kartik, In Laravel, @yield is principally used to define ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,790 points
853 views
0 votes
1 answer

Error:login in Laravel. How to solve?

Hey, First check if your model login has a field password in ...READ MORE

answered Mar 26 in Laravel by Niroj
• 22,790 points
86 views
0 votes
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,790 points
434 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,790 points
62 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,790 points
64 views
0 votes
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,790 points
151 views
0 votes
1 answer

Explain the concept of encryption and decryption in Laravel?

It is a process of transforming any ...READ MORE

answered Mar 17 in Laravel by Niroj
• 22,790 points
32 views
0 votes
1 answer

What is the concept of controller in Laravel?

Hii, In the MVC framework, the letter ‘C’ ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,790 points
24 views