How to install composer when I get allowed memory error

IEnumerable

Im trying to install composer on my production machine but keep getting many errors.

Im following the tutorial on this site

https://linuxize.com/post/how-to-install-and-use-composer-on-ubuntu-18-04/ to install.

But when i run this command

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

I get the following error.

enter image description here

I removed the old installation because everytime I tried composer update I also got a memory error. So Im trying to update composer and now my machine cant even install composer.

My VPS has

  • I have 1 cpu
  • 50Gig HDD
  • 2 Gig ram
Johan Palych

Memory limit errors

enter image description here "This is a list of common pitfalls on using Composer, and how to avoid them" Duplicated the response.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Display error when i try to composer install

How can I resolve "Allowed memory size exhausted" error?

why I get 500 server error in Laravel after composer install

There is an error when running composer install

I get this error when I try to install

How can I improve my query for not to get "PHP Fatal error: Allowed memory size" (Ordering and paginating in laravel 5.2)

PHP Fatal error: Allowed memory size of 1610612736 bytes composer update

When compiling program I get the error 'void' type not allowed here

Install scrapy ERROR - When I try to install scrapy I get the following error that I do not know how to fix it:

How do I get a better error message when I try to pip install with an incompatible python version?

Php version error when install composer

Laravel 4.0.9 error when run composer install

I write "composer require larabook/gateway" for install the package but I get this error

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted Voyager

When I Install ghost with ghost-cli I get error

I get this error when I install acpi-call-dkms

Error I get when I try install IDE Anjuta

Why do I get this error when I run 'bower install'?

I get and error when I try to do pip install

Why I get error when I try to install pyaudio?

When trying to install valet and composer I get this message. Installation failed, reverting ./composer.json to its original content

curl is installed and working but gives error when i run "php composer.phar install"

How to Fix Cakephp 4 Composer Install Error

Composer: How to get composer to install a version that depends on an older PHP?

When I try to save my numpy array to an .npy file I get a memory error. How can I create a large .npy file from image files with limited memory?

How can I install fpoirotte/cryptal with composer?

How do I install Composer PHP packages without Composer?

Google App Engine standard - composer update --lock | Allowed memory size exhausted | Error 255