问题描述
当我尝试构建CakePHP3 PHP应用程序的Docker容器时,我当前收到此错误:
Loading composer repositories with package information
Updating dependencies (including require-dev)
[RuntimeException]
Could not load package cakePHP/migrations in http://repo.packagist.org: [UnexpectedValueException] Could not parse version constraint 0.next-dev: Invalid version string "0.next-dev"
[UnexpectedValueException]
Could not parse version constraint 0.next-dev: Invalid version string "0.next-dev"
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
这是我的composer.json的相关部分:
{
"name": "cakePHP/app","description": "CakePHP skeleton app","type": "project","require": {
"PHP": ">=5.6","cakePHP/cakePHP": "3.5.*","mobiledetect/mobiledetectlib": "2.*","cakePHP/migrations": "1.7.*","cakePHP/plugin-installer": "*","friendsofcake/search": "^2.3","josegonzalez/cakePHP-version": "1.*","google/apiclient": "^2.0","friendsofcake/cakePHP-csvview": "~3.0","alt3/cakePHP-swagger": "^2.0.2","riesenia/cakePHP-duplicatable": "^3.0","dakota/cake-excel": "^2.0","spomky-labs/jose": "^7.0","burzum/cakePHP-imagine-plugin": "2.*","tightenco/collect": "< 5.7","muffin/trash": "^2.1","friendsofcake/crud": "^5.4","elasticsearch/elasticsearch": "~7.0"
},"minimum-stability": "dev","prefer-stable": true
}
如您所见,migrations
库的版本设置为"1.7.*"
,所以我不知道是什么原因导致此错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)