$php composer.phar require "kartik-v/yii2-password": "@dev"
Error msg:
Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /home/john/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
When i wanna add an extension in my project i got this error, help me to solve it.
Following Federico advice what I've done is the following
And now everything works fine.
You should delete composer asset plugin :
rm -rf ~/.composer/vendor/fxp
rm -r %APPDATA%\Composer\vendor\fxp
And re-install it :
Read more : https://github.com/francoispluchino/composer-asset-plugin/pull/133
Try this, I had the same error with an old version (existing folder) of the plugin:
or if the global update doesn't work, you can remove manually the global installation folder of this plugin in
C:\Users\$USERNAME\AppData\Roaming\Composer\vendor\fxp\composer-asset-plugin
and reinstall the plugin by running the command:$ composer global update