cancel
Showing results for 
Search instead for 
Did you mean: 

Cant install magento2 with composer

SOLVED

Cant install magento2 with composer

I m trying to install magento with composer using my public and private key.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento

 

But got error: 

The process "unzip -qq  '/var/www/html/magento/vendor/magento/magento2-base/........zip' -d '/var/www/html/magento/vendor/composer/421bd2d4'" exceeded the timeout of 300 seconds.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class

How to solve it?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Cant install magento2 with composer

Hi @risunochki46ad 

Try composer update/install -o -vvv and check weather the package is being loaded from composer's cache.
If yes try clearing composer's cache or try adding -cache-dir=/dev/null .

To force downloading an archive instead of cloning sources, use the --prefer-dist option in combination with --no-dev.

Otherwise you could try raising composer's process timeout value:

export COMPOSER_PROCESS_TIMEOUT=600   ( defaults to 300 )


It may help you to resolve issue.

If issue resolve, Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

View solution in original post

3 REPLIES 3

Re: Cant install magento2 with composer

@risunochki46ad 

try with this >

composer create-project --prefer-source --repository-url=https://repo.magento.com/ magento/project-community-edition

 

or 

 

https://7php.com/composer-exceeded-timeout-of-300-seconds/

Manish Mittal
https://www.manishmittal.com/

Re: Cant install magento2 with composer

Hi @risunochki46ad 

Try composer update/install -o -vvv and check weather the package is being loaded from composer's cache.
If yes try clearing composer's cache or try adding -cache-dir=/dev/null .

To force downloading an archive instead of cloning sources, use the --prefer-dist option in combination with --no-dev.

Otherwise you could try raising composer's process timeout value:

export COMPOSER_PROCESS_TIMEOUT=600   ( defaults to 300 )


It may help you to resolve issue.

If issue resolve, Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: Cant install magento2 with composer

As i understand --prefer-dists is used by default even without this parametr. And flag --dev 

is used by default too, i m downloading first time magento, i don't know may be i ll need some packkages from dev too. Anyway increesing of execution time has helped me. Thanks