当我尝试将FullCalendar添加到我的composer.json时出现错误
[意外值异常]无法分析版本约束>=~2:版本字符串"~2"无效
当我从要求部分中删除完整日历时,一切正常。我不完全是一个作曲家向导,所以任何帮助都会很有用。
"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"
},
尝试运行
composer self-update
可能您的作曲家版本没有正确解析波浪号运算符。
在此处阅读更多内容