rmrevin / yii2-comments

Yii 2 comments extension
MIT License
52 stars 19 forks source link

composer update failed #9

Closed mathedu4all closed 8 years ago

mathedu4all commented 8 years ago

composer require "rmrevin/yii2-comments:*"

[RuntimeException]
Could not load package rmrevin/yii2-fontawesome in http://packagist.org: [U
nexpectedValueException] Could not parse version constraint v4.1.: Invalid
version string "v4.1.
"

[UnexpectedValueException]
Could not parse version constraint v4.1.: Invalid version string "v4.1."

rmrevin commented 8 years ago

Hello. Update composer, clean cache and update packages in project.

osCMattiFinn commented 8 years ago

We cannot update packages because it throws this error every time we try.

arswarog commented 8 years ago

Hello. php composer.phar global require "fxp/composer-asset-plugin:~1.1.1" Update composer, clean cache and update packages in project.

rmrevin commented 8 years ago

@arswarog Thanks for answer. @osCMattiFinn You have to update the plugin fxp/composer-asset-plugin to last version

php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar self-update
php composer.phar clear-cache
php composer.phar update
osCMattiFinn commented 8 years ago

I ran the above commands rmrevin and receive the following error while running composer update:

The requested package mrevin/yii2-fontawesome could not be found in any version, there may be a typo in the package name.

I get the same error if I try to install any package.

rmrevin commented 8 years ago

@osCMattiFinn Check the package name. The package is named rmrevin/yii2-fontawesome

osCMattiFinn commented 8 years ago

You are right. I think that some other developer who has used your package along with their own has made an error.

rmrevin commented 8 years ago

@osCMattiFinn do not quite understand. With the extension everything seems to be fine?

osCMattiFinn commented 8 years ago

It looks to be good now, update appears to be running normally and I saw that your package got installed.

I simply adjusted the composer.json file to correct the typo. This is not a file I have previously manually edited, so the error must have come from a package I installed (and probably not used).

ankhanguit commented 8 years ago

does it work in yii2 advanced?

rmrevin commented 8 years ago

@arswarog yes.

apps25 commented 6 years ago

Hi I am facing the same issue but i am unable to fix it. I tried all but all in vain.