AnswerBun.com

Getting error in downloading repository Magento 2 via composer

I am using windows 10 and node js command prompt with latest composer version. The xampp already install with supporting magento2 PHP directives.

When i am trying to install a new magento 2 version 2.4.x and type the command this

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

I got the following error:

Problem 1
– Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].

- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

Problem 2
– Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].

- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

Problem 3
– laminas/laminas-dependency-plugin[1.0.0, …, 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

- magento/product-community-edition 2.4.1 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].

- Root composer.json requires magento/product-community-edition 2.4.1 -> satisfiable by magento/product-community-edition[2.4.1].

Any ideas how to get solution around this?

Magento Asked by Raghwendra Ojha on December 31, 2020

0 Answers

Add your own answers!

Related Questions

How to show downloadable links in a block?

0  Asked on January 16, 2021 by kamzata

     

Magento tax_class_id not importing

1  Asked on January 15, 2021 by sushivam

     

How to add firebase cdn’s in magento2?

0  Asked on January 15, 2021 by usama-sohail

   

Paypal log error

1  Asked on January 14, 2021 by fja3omega

     

Enable Dynamic price in bundle product

1  Asked on January 9, 2021 by miguel-angel-espinosa-garca

         

Magento 2 hidden products

1  Asked on January 6, 2021 by ramesh-kr

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.