Composer Update Error

Hi all, i need help to solve this problem.

I have my dev pc (windows10) and a production server (linux - ubuntu). They are syncronized with my application code. (same composer.json)

I run composer update on my production server without error.

I run composer update on my dev pc with this error:

Adding VCS repository bower-asset/fullcalendar

Downloading https://api.github.com/repos/fullcalendar/fullcalendar

Downloading https://api.github.com/repos/fullcalendar/fullcalendar/contents/bower.json?ref=master

Downloading https://api.github.com/repos/fullcalendar/fullcalendar/commits/master

Downloading https://api.github.com/repos/fullcalendar/fullcalendar/tags?per_page=100

Downloading https://api.github.com/repos/fullcalendar/fullcalendar/git/refs/heads?per_page=100

[UnexpectedValueException]

Could not parse version constraint >=~2: Invalid version string "~2"

Exception trace:

() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/semver/src/VersionParser.php:483

Any suggestion on what can i do?

thank’s

Ok, i solve the problem in this way:

  1. composer clear-cache

  2. composer global require "fxp/composer-asset-plugin:dev-master"

  3. composer update

bye

dev-master is not a good idea, IMO.

Why doesn’t this work?




composer global require "fxp/composer-asset-plugin:^1.3.1"



(( from the Guide ))