无法使用 composer 安装 silverstripe-fluent 模块
Cannot install the silverstripe-fluent module using composer
有一些问题我无法使用 composer 安装 Silverstripe fluent 模块?当我 运行:
时出现以下错误
composer require tractorcow/silverstripe-fluent:^4
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- The requested package tractorcow/silverstripe-fluent 4 exists as 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/building-menu, dev-master, 4.0.x-dev] but these are rejected
by your constraint.
Silverstripe 版本为:4.0.3
composer.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),您可以尝试包装版本约束,包括。双引号中的插入符 ^
如:
composer require tractorcow/silverstripe-fluent:"^4"
这也适用于我的本地开发设置并安装最新的 4.0.0.-rc1
有一些问题我无法使用 composer 安装 Silverstripe fluent 模块?当我 运行:
时出现以下错误composer require tractorcow/silverstripe-fluent:^4
Your requirements could not be resolved to an installable set of packages.
Problem 1 - The requested package tractorcow/silverstripe-fluent 4 exists as 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/building-menu, dev-master, 4.0.x-dev] but these are rejected by your constraint.
Silverstripe 版本为:4.0.3
composer.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),您可以尝试包装版本约束,包括。双引号中的插入符 ^
如:
composer require tractorcow/silverstripe-fluent:"^4"
这也适用于我的本地开发设置并安装最新的 4.0.0.-rc1