组成FullCalendar时出错

时间:2017-04-11 12:48:55

标签: javascript php laravel composer-php fullcalendar

当我尝试将FullCalendar添加到我的composer.json

时出现错误

[UnexpectedValueException] 无法解析版本约束> = ~2:无效的版本字符串“~2”

当我从我的需要部分删除FullCalendar时,一切正常。 我不是一个作曲家巫师,所以任何帮助都会有用。

"require": {
  "php": ">=5.5.9",
  "laravel/framework": "5.3.*",
  "laravelcollective/html": "5.*",

  "symfony/finder": "^3.0",
  "symfony/yaml": "^3.0",

  "firephp/firephp-core": "^0.4.0",
  "wpb/string-blade-compiler": "3.3.0",
  "mpdf/mpdf": "^6.1",
  "PHPOffice/PHPExcel": "^1.8",
  "mgargano/simplehtmldom": "^1.5",

  "components/font-awesome": "dev-master",
  "components/modernizr": "2.8.3",

  "barryvdh/laravel-debugbar": "^2.3",

  "bower-asset/animate.css": "dev-master",
  "bower-asset/autosize": "dev-master",
  "bower-asset/autogrow": "1.0.2",
  "bower-asset/chartjs": "dev-master",
  "bower-asset/eventemitter": "dev-master",
  "bower-asset/framework7": "dev-master",
  "bower-asset/jsanimatedmodal": "dev-master",
  "bower-asset/jquery": "3.1.1",
  "bower-asset/jquery-idletimer": "dev-master",
  "bower-asset/jquery-ui": "dev-master",
  "bower-asset/jquery.transit": "dev-master",
  "bower-asset/magnific-popup": "dev-master",
  "bower-asset/moment": "^2.1",
  "bower-asset/OwlCarouselBower": "dev-master",
  "bower-asset/photoswipe": "dev-master",
  "bower-asset/platform": "dev-master",
  "bower-asset/select2": "dev-master",
  "bower-asset/selectize": "dev-master",
  "bower-asset/spin.js": "dev-master",
  "bower-asset/spinkit": "dev-master",
  "bower-asset/underscore": "dev-master",
  "bower-asset/vue": "1.0.28",
  "bower-asset/jquery-file-download": "^1.4",
  "bower-asset/tooltipster": "^4.1",
  "bower-asset/vue-multiselect": "^1.1",
  "nnnick/chartjs": "^2.2",
  "phpoffice/phpword": "^0.13.0",
  "peekmo/jsonpath": "dev-master",
  "guzzlehttp/guzzle": "dev-master",
  "bower-asset/jquery-simple-slideshow": "^1.0"

},

1 个答案:

答案 0 :(得分:0)

尝试运行

composer self-update 

可能你的作曲家版本没有正确解析波浪线操作符。

了解更多here