Why I get «Nothing to install or update» on the «composer require --prefer-source mage2pro/allpay:*» command?

composer
(Lin) #1

Hi
I try to install allpay
But when i do composer require --prefer-source mage2pro/allpay:*
It’'s show
Nothing to install or update
Package fabpot/php-cs-fixer is abandoned, you should avoid using it. Use friendsofphp/php-cs-fixer instead.

What can i do?
please help me

0 Likes

(Dmitry Fedyuk) #2

What is your current folder when you are executing this command?

0 Likes

(Lin) #3

/usr/share/nginx/html
this is my magento root folder

0 Likes

(Dmitry Fedyuk) #4

Does the Magento root folder contain the vendor/mage2pro/allpay subfolder?

0 Likes

(Lin) #5

yes

0 Likes

(Dmitry Fedyuk) #6

Did you create it manually?

0 Likes

(Lin) #7

No
I don’t have.

0 Likes

(Dmitry Fedyuk) #8

So, it looks like the mage2pro/allpay composer package is alredy installed in your system by somebody.
That is why Composer writes «Nothing to install or update».
The question is who did install it and by which means he did it.
Does the Magento root composer.json file contain the mage2pro/allpay package declaration?

0 Likes

(Lin) #9

yes i did composer.json file contain the mage2pro/allpay package declaration

0 Likes

(Dmitry Fedyuk) #10

Maybe you ran the composer require --prefer-source mage2pro/allpay:* command twice?
If you have already successfully implemented the steps 1-7 of the installation instruction, then I recommend to consider the step 8 (the package installation) as implemented too, and do the steps 9, 10, and 11.

0 Likes