I have just cloned and pulled a yii project from yii , I've globally required fxp/composer-asset-plugin:~1.1.1
with this command composer global require "fxp/composer-asset-plugin:~1.1.1"
and also globally required fxp/composer-asset-plugin
with this command composer global require "fxp/composer-asset-plugin"
but when i run composer update to make the vender file and autoload to use the project i get the following error :
Your requirements could not be resolved to an installable set of packages.
And I also get the following error when trying to composer update other projects before the update task :
The "yiisoft/yii2-composer" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
can anyone help to fix these two specially the first one , because I suppose the following problems are related .
(I've also tried reinstalling composer but still got the same errors )