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 :)
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.
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.