作曲家提供了以下錯誤:UnexpectedValueException無法解析版本約束^ 1.0.2:無效的版本字符串 「^ 1.0.2」
Could not load package phpspec/prophecy in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.0.2: Invalid version string "^1.0.2"
作曲家提供了以下錯誤:UnexpectedValueException無法解析版本約束^ 1.0.2:無效的版本字符串 「^ 1.0.2」
Could not load package phpspec/prophecy in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.0.2: Invalid version string "^1.0.2"
發現在GitHub上這個帖子: https://github.com/phpspec/prophecy/commit/f802af851cc983d0ed074d29cba14af6766a24b1
它說:
Update your composer version.
I've just checked https://github.com/composer/satis and satis is infact using a version of composer that supports this new syntax, so you must be using an old version of satis.
- GrahamCampbell加了附註19天前
嘗試更新作曲家(如果你使用它SATIS)
而且這已經在這裏報道:https://github.com/composer/satis/issues/200
作曲家加入到使用^操作符12月初2014更新作曲家將消除能力這個問題 - 這是很常見的,因爲每個人都使用PHPUnit,而PHPUnit在2015年1月底開始使用這個操作符。