![]() To diagnose the problem you should run the following: composer diagnose Not sure what is the reason but I also run the following commands. Installing laminas/laminas-dependency-plugin (2.4.0): Loading from cache Package operations: 546 installs, 0 updates, 0 removals Updating dependencies (including require-dev)Īfter waiting I saw the following output: Updating dependencies (including require-dev) Warning from : Support for Composer 1 is deprecated and some packages will not be available. Loading composer repositories with package information Installing magento/project-community-edition (2.4.5-p1): Loading from cache Installing magento/project-community-edition (2.4.5-p1) Creating a "magento/project-community-edition" project at "/tmp/exampleproject" My problem solved with: Change the wifi (I use my phone) - Waiting (about 5 minutes) (Above commands are from composer killed while updating) free -mĭd if=/dev/zero of=swapfile bs=1M count=2000Įcho "/var/_swap_/swapfile none swap sw 0 0" > /etc/fstab Follow this guide: ī) Generate swap file (Linux) : Try creating a swap file to provide more memory: At this point you have two options:Ī) Increase memory (Virtual Machines or Docker) : Your container or VM needs more available memory. If everything is ok but composer is still hanging try to clear composer cache: composer clear-cacheĢnd option If these steps does not repair your composer then it's possible that the system does not have enough RAM memory available (I faced this problem and the symptomps were the same that you describe). The only change it made was that Composer would hang on a different file.Īfter leaving Composer running like that for quite a long time, it finally exited with an error such as the following: /path/to/ComposerSetup/bin/composer: line 18: 1356 Segmentation fault php "$/composer.phar" $*ġst of all : Check firewall and proxy connections. I've tried removing some of the packages from my composer.json, including the "mockery/mockery" package. "xethron/migrations-generator": "dev-master", Searching through my vendor folder, I notice the mockery/mockery package I use requires hamcrest/hamcrest-php, but I can't find anything that makes any reference to cordoval.Īny idea what's wrong and how I can fix it so that I can do the update? This isn't listed as a dependency in my composer.json ![]() I tried searching for cordoval/hamcrest-php on and couldn't find it. ![]() Then I ran it in verbose mode: composer update -vvvĪnd I noticed it hung while reading this json: Reading path/to/Composer/repo//provider-cordoval$hamcrest-php.json from cache So I tried things like updating composer, dump-autoload, but nothing seemed to work. I tried updating a Laravel project I'm working on today using composer updateīut it hung on Updating dependencies (including require-dev)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |