您好,我正在尝试安装最新版本的typo3。 我是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].
答案 0 :(得分:1)
TYPO3的最新稳定LTS版本是9.5。版本10.0尚未发布,因此您只能获得开发版本。
所以我建议从
开始composer require typo3/minimal:"^9.5"
对于所有其他TYPO3系统扩展,您可以通过相同的方式进行操作:
composer require typo3/cms-tstemplate:"^9.5"