Closed lx4r closed 9 years ago
Can you show minimal composer.json which reproduces issue? Based on your description I created such composer.json https://gist.github.com/dmitry-kulikov/1b2434fe41849eb109bd, it works correct.
@dmitry-kulikov Thanks for reply. Works fine for me as well.
@lx4r could you, please, attach your compose.json
@dmitry-kulikov @tuyakhov Thanks for the fast reply. The files you requested plus additional information:
Thank you so much for helping me lx4r
All three composer.json files work for me. Try to find issue in your composer installation. I guess you have composer installed globally. Try to update composer composer self-update
. Also check composer plugins in ~/.composer. They are not updated during composer self-update
. Yii recommends to install fxp/composer-asset-plugin, currently documentation contains command composer global require "fxp/composer-asset-plugin:~1.0.3"
http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer, they update documentation from time to time, so you could stuck with old version of plugin. In ~/.composer/composer.lock you can check your version of plugins. You can run composer update
in .composer directory to update plugins.
@dmitry-kulikov Thanks a lot, you solved my problem.
It seems I forgot to apply composer global require "fxp/composer-asset-plugin:~1.0.3"
when I installed Yii 2. After doing so the composer file including the braintree component worked fine.
Thanks again and stay awesome! lx4r
Hey, I added
"tuyakhov/yii2-braintree": "*"
to my composer.json which already contains"braintree/braintree_php" : "3.5.0"
and rancomposer update
. I got this error message:After some research in the composer repos I added
"npm-asset/braintree-web": "2.10.*"
to the composer.json but that didn't help.What am I doing wrong?
Thanks in advance for the help lx4r