Image: Could not load package intervention/image in http://packagist.org

Created on 30 Nov 2015  路  9Comments  路  Source: Intervention/image

Hi,

I don't know why, but I have this error when I install your project in Laravel:

[RuntimeException] Could not load package intervention/image in http://packagist.org: [UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid version string "4.x.x"

Then:

[UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid version string "4.x.x"

In my case (in France), this problem appeared this afternoon :(

I hope can help me :)

Most helpful comment

EDIT: @paulgrimes1 @nickleus73 Just found what it is. You just need to update composer itself first.

composer self-update

I had to run it as sudo but after that composer update worked fine for me.

All 9 comments

Hi, FWIW I'm getting the same issue, but only when a composer update is attempted _outside_ of vagrant / Laravel homestead. Inside vagrant/homestead, all is well..

EDIT: @paulgrimes1 @nickleus73 Just found what it is. You just need to update composer itself first.

composer self-update

I had to run it as sudo but after that composer update worked fine for me.

Can confirm, updating my composer.phar solved this issue for me. Most likely an added feature in the latest composer to support .x wildcards on versions.

Nice ! Thanks :)

For me, I executed docker pull composer/composer

Can confirm as well, running composer self-update then composer update worked.

You have just to update composer to the latest version

Composer self-update then composer update worked.

Updating composer fixed it for me as well.

I got it working, but after I removed my apt-get composer and manually installed it. It might be helpful to note if you've installed composer via apt-get it will not have the self-update command.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theofidry picture theofidry  路  5Comments

dragonfire1119 picture dragonfire1119  路  4Comments

knif3rdev picture knif3rdev  路  6Comments

kamov picture kamov  路  6Comments

jerauf picture jerauf  路  4Comments