有一些问题,我无法使用作曲家安装银条流利模块?运行时出现以下错误:
composer require tractorcow/silverstripe-fluent:^4
您的要求无法解析为一组可安装的 包。
问题1 - 请求的包 tractorcow/silverstripe-fluent 4 以 tractorcow/silverstripe-fluent[3.1.0, 3.1.0.x-dev, 3.1.1, 3.1.x-dev, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.x-dev, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.7.x-dev, 3.8.0, 3.8.1, 3.8.x-dev, 3.x-dev, 3.9.x-dev, 4.0.0-alpha1, 4.0.0-beta1, 4.0.0-beta2, 4.0.0-beta3, 4.0.0-rc1, dev-dev-dev/building-menu, dev-master, 4.0.x-dev] 但这些被拒绝 受你的约束。
银条版本是:4.0.3
作曲家.json是:
{
"name": "silverstripe/installer",
"type": "silverstripe-recipe",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=5.6.0",
"silverstripe/recipe-plugin": "^1",
"silverstripe/recipe-cms": "1.0.3@stable",
"silverstripe-themes/simple": "~3.2.0",
"undefinedoffset/sortablegridfield": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
},
"extra": {
"project-files": [
"assets/*",
"mysite/_config/*",
".env.example",
"favicon.ico"
],
"project-files-installed": [
".htaccess",
"index.php",
"install-frameworkmissing.html",
"install.php",
"mysite/.htaccess",
"mysite/_config.php",
"mysite/_config/mysite.yml",
"mysite/code/Page.php",
"mysite/code/PageController.php",
"web.config"
]
},
"config": {
"process-timeout": 600,
"platform": {
}
},
"prefer-stable": true,
"minimum-stability": "dev"
}
如何解决此问题?是由于我正在使用的SS版本吗?
谢谢赫曼特·库马尔
出于某种原因,您的命令适用于我的机器(Win10、Git Bash(,您可以尝试将版本约束(包括插入符号^
(包装在双 qoutes 中,例如:
composer require tractorcow/silverstripe-fluent:"^4"
这也适用于我的本地开发设置并安装最新的 4.0.0.-rc1