typo3/cms-tstemplate 10.0.x-dev 需要 typo3/cms-core 10.0.*@dev -> typo3/cms-core[10.0.x-dev] 可满足

typo3/cms-tstemplate 10.0.x-dev requires typo3/cms-core 10.0.*@dev -> satisfiable by typo3/cms-core[10.0.x-dev]

您好,我正在尝试安装最新的 typo3 lts。 我是 typo3 的新手,刚接触它。

我选择了 composer,因为它是最简单的安装方式。

网站上说我需要使用

require typo3/minimal

但是当我尝试添加任何其他扩展时

typo3/cms-tstemplate

我收到这个错误。

Using version ^10.0@dev for typo3/cms-tstemplate
Search for a package:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - don't install typo3/cms-core 10.0.x-dev|don't install typo3/cms-core 9.5.x-dev
    - don't install typo3/cms-core 10.0.x-dev|remove typo3/cms-core 9.5.x-dev
    - don't install typo3/cms-core 10.0.x-dev|don't install typo3/cms-core 9.5.x-dev
    - typo3/cms-tstemplate 10.0.x-dev requires typo3/cms-core 10.0.*@dev -> satisfiable by typo3/cms-core[10.0.x-dev].
    - Installation request for typo3/cms-tstemplate ^10.0@dev -> satisfiable by typo3/cms-tstemplate[10.0.x-dev].
    - Installation request for typo3/cms-core (locked at 9.5.x-dev) -> satisfiable by typo3/cms-core[9.5.x-dev].

所以我现在需要调整什么版本,读起来有点乱

编辑:

composer.json

{
    "name": "test",
    "description": "test",
    "type": "project",
    "require": {
        "typo3/minimal": "9.5"
    },
    "authors": [
        {
            "name": "John",
            "email": "test"
        }
    ],
    "minimum-stability": "dev"
}

命令行:

C:\xampp\htdocs\test> composer require typo3/minimal:^9.5
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
Writing lock file
Generating autoload files
Generating class alias map file
Inserting class alias loader into main autoload.php file
C:\xampp\htdocs\test> composer require typo3/cms-tstemplate:^9.5
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - don't install typo3/cms-core v9.5.0|don't install typo3/cms-core 9.5.x-dev
    - don't install typo3/cms-core v9.5.0|remove typo3/cms-core 9.5.x-dev
    - don't install typo3/cms-core v9.5.0|don't install typo3/cms-core 9.5.x-dev
    - typo3/cms-tstemplate v9.5.0 requires typo3/cms-core 9.5.0 -> satisfiable by typo3/cms-core[v9.5.0].
    - Installation request for typo3/cms-tstemplate 9.5 -> satisfiable by typo3/cms-tstemplate[v9.5.0].
    - Installation request for typo3/cms-core (locked at 9.5.x-dev) -> satisfiable by typo3/cms-core[9.5.x-dev].

TYPO3 的最新稳定 LTS 版本是 9.5。 10.0 版本尚未发布,因此您只能获得开发版本。

所以我建议从

开始
composer require typo3/minimal:"^9.5"

对于所有其他 TYPO3 系统扩展,您可以采用相同的方式:

composer require typo3/cms-tstemplate:"^9.5"